mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Created middleware to catch rest errors and return JSON responses
This commit is contained in:
@@ -19,6 +19,8 @@ return [
|
||||
|
||||
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
||||
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
|
||||
|
||||
Middleware\Error\ResponseTypeMiddleware::class => AnnotatedFactory::class,
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user