mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
Removed requirement of OPTIONS on every route
This commit is contained in:
parent
5d2698e8a1
commit
a365faef9c
@ -8,19 +8,19 @@ return [
|
|||||||
'name' => 'rest-authenticate',
|
'name' => 'rest-authenticate',
|
||||||
'path' => '/rest/v{version:1}/authenticate',
|
'path' => '/rest/v{version:1}/authenticate',
|
||||||
'middleware' => Action\AuthenticateAction::class,
|
'middleware' => Action\AuthenticateAction::class,
|
||||||
'allowed_methods' => ['POST', 'OPTIONS'],
|
'allowed_methods' => ['POST'],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'rest-create-shortcode',
|
'name' => 'rest-create-shortcode',
|
||||||
'path' => '/rest/v{version:1}/short-codes',
|
'path' => '/rest/v{version:1}/short-codes',
|
||||||
'middleware' => Action\CreateShortcodeAction::class,
|
'middleware' => Action\CreateShortcodeAction::class,
|
||||||
'allowed_methods' => ['POST', 'OPTIONS'],
|
'allowed_methods' => ['POST'],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'rest-resolve-url',
|
'name' => 'rest-resolve-url',
|
||||||
'path' => '/rest/v{version:1}/short-codes/{shortCode}',
|
'path' => '/rest/v{version:1}/short-codes/{shortCode}',
|
||||||
'middleware' => Action\ResolveUrlAction::class,
|
'middleware' => Action\ResolveUrlAction::class,
|
||||||
'allowed_methods' => ['GET', 'OPTIONS'],
|
'allowed_methods' => ['GET'],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'rest-list-shortened-url',
|
'name' => 'rest-list-shortened-url',
|
||||||
@ -32,13 +32,13 @@ return [
|
|||||||
'name' => 'rest-get-visits',
|
'name' => 'rest-get-visits',
|
||||||
'path' => '/rest/v{version:1}/short-codes/{shortCode}/visits',
|
'path' => '/rest/v{version:1}/short-codes/{shortCode}/visits',
|
||||||
'middleware' => Action\GetVisitsAction::class,
|
'middleware' => Action\GetVisitsAction::class,
|
||||||
'allowed_methods' => ['GET', 'OPTIONS'],
|
'allowed_methods' => ['GET'],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'rest-edit-tags',
|
'name' => 'rest-edit-tags',
|
||||||
'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags',
|
'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags',
|
||||||
'middleware' => Action\EditTagsAction::class,
|
'middleware' => Action\EditTagsAction::class,
|
||||||
'allowed_methods' => ['PUT', 'OPTIONS'],
|
'allowed_methods' => ['PUT'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user