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