From a365faef9c452b0657185525efa5c3cd295eccee Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 14 Apr 2017 12:52:24 +0200 Subject: [PATCH] Removed requirement of OPTIONS on every route --- module/Rest/config/routes.config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/Rest/config/routes.config.php b/module/Rest/config/routes.config.php index 8d107d8b..4edf4658 100644 --- a/module/Rest/config/routes.config.php +++ b/module/Rest/config/routes.config.php @@ -8,19 +8,19 @@ return [ 'name' => 'rest-authenticate', 'path' => '/rest/v{version:1}/authenticate', 'middleware' => Action\AuthenticateAction::class, - 'allowed_methods' => ['POST', 'OPTIONS'], + 'allowed_methods' => ['POST'], ], [ 'name' => 'rest-create-shortcode', 'path' => '/rest/v{version:1}/short-codes', 'middleware' => Action\CreateShortcodeAction::class, - 'allowed_methods' => ['POST', 'OPTIONS'], + 'allowed_methods' => ['POST'], ], [ 'name' => 'rest-resolve-url', 'path' => '/rest/v{version:1}/short-codes/{shortCode}', 'middleware' => Action\ResolveUrlAction::class, - 'allowed_methods' => ['GET', 'OPTIONS'], + 'allowed_methods' => ['GET'], ], [ 'name' => 'rest-list-shortened-url', @@ -32,13 +32,13 @@ return [ 'name' => 'rest-get-visits', 'path' => '/rest/v{version:1}/short-codes/{shortCode}/visits', 'middleware' => Action\GetVisitsAction::class, - 'allowed_methods' => ['GET', 'OPTIONS'], + 'allowed_methods' => ['GET'], ], [ 'name' => 'rest-edit-tags', 'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags', 'middleware' => Action\EditTagsAction::class, - 'allowed_methods' => ['PUT', 'OPTIONS'], + 'allowed_methods' => ['PUT'], ], ],