mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-23 16:30:27 +01:00
Update to v5
This commit is contained in:
@@ -21,8 +21,8 @@ import Server from "@ioc:Adonis/Core/Server";
|
||||
*/
|
||||
|
||||
Server.middleware.register([
|
||||
'Adonis/Core/BodyParserMiddleware',
|
||||
'App/Middleware/SilentAuth',
|
||||
() => import('@ioc:Adonis/Core/BodyParser'),
|
||||
() => import('App/Middleware/SilentAuth'),
|
||||
])
|
||||
|
||||
/*
|
||||
@@ -42,5 +42,5 @@ Server.middleware.register([
|
||||
|
|
||||
*/
|
||||
Server.middleware.registerNamed({
|
||||
auth: 'App/Middleware/Auth',
|
||||
auth: () => import('App/Middleware/Auth'),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user