mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
372 B
372 B
Congratulations! You have configured @adonisjs/shield package successfully. Just make sure to add the following middleware inside the start/kernel.ts file.
Server.middleware.register([
() => import('@ioc:Adonis/Core/BodyParser'),
() => import('@ioc:Adonis/Addons/Shield')
'...',
])
The middleware must be right after the BodyParser middleware.