Fixed Action prefix on routable middlewares

This commit is contained in:
Alejandro Celaya
2016-07-27 20:22:50 +02:00
parent a3554db1c3
commit 36259588db
12 changed files with 25 additions and 29 deletions

View File

@@ -7,31 +7,31 @@ return [
[
'name' => 'rest-authenticate',
'path' => '/rest/authenticate',
'middleware' => Action\AuthenticateMiddleware::class,
'middleware' => Action\AuthenticateAction::class,
'allowed_methods' => ['POST', 'OPTIONS'],
],
[
'name' => 'rest-create-shortcode',
'path' => '/rest/short-codes',
'middleware' => Action\CreateShortcodeMiddleware::class,
'middleware' => Action\CreateShortcodeAction::class,
'allowed_methods' => ['POST', 'OPTIONS'],
],
[
'name' => 'rest-resolve-url',
'path' => '/rest/short-codes/{shortCode}',
'middleware' => Action\ResolveUrlMiddleware::class,
'middleware' => Action\ResolveUrlAction::class,
'allowed_methods' => ['GET', 'OPTIONS'],
],
[
'name' => 'rest-list-shortened-url',
'path' => '/rest/short-codes',
'middleware' => Action\ListShortcodesMiddleware::class,
'middleware' => Action\ListShortcodesAction::class,
'allowed_methods' => ['GET'],
],
[
'name' => 'rest-get-visits',
'path' => '/rest/short-codes/{shortCode}/visits',
'middleware' => Action\GetVisitsMiddleware::class,
'middleware' => Action\GetVisitsAction::class,
'allowed_methods' => ['GET', 'OPTIONS'],
],
],