Defined custom NotFoundMiddleware for rest routes

This commit is contained in:
Alejandro Celaya
2016-07-26 19:09:54 +02:00
parent 83f29080c6
commit a81dba58bd
7 changed files with 88 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ return [
'allowed_methods' => ['GET', 'OPTIONS'],
],
[
'name' => 'rest-lActionist-shortened-url',
'name' => 'rest-list-shortened-url',
'path' => '/rest/short-codes',
'middleware' => Action\ListShortcodesMiddleware::class,
'allowed_methods' => ['GET'],