diff options
Diffstat (limited to 'config/bodyparser.ts')
-rw-r--r-- | config/bodyparser.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/bodyparser.ts b/config/bodyparser.ts index b5adcda..b3a027b 100644 --- a/config/bodyparser.ts +++ b/config/bodyparser.ts | |||
@@ -5,9 +5,10 @@ | |||
5 | * file. | 5 | * file. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | import { BodyParserConfig } from '@ioc:Adonis/Core/BodyParser'; | 8 | import { BodyParserConfig } from '@adonisjs/core/bodyparser' |
9 | import { defineConfig } from '@adonisjs/core/bodyparser' | ||
9 | 10 | ||
10 | const bodyParserConfig: BodyParserConfig = { | 11 | const bodyParserConfig = defineConfig({ |
11 | /* | 12 | /* |
12 | |-------------------------------------------------------------------------- | 13 | |-------------------------------------------------------------------------- |
13 | | White listed methods | 14 | | White listed methods |
@@ -200,6 +201,6 @@ const bodyParserConfig: BodyParserConfig = { | |||
200 | */ | 201 | */ |
201 | types: ['multipart/form-data'], | 202 | types: ['multipart/form-data'], |
202 | }, | 203 | }, |
203 | }; | 204 | }) |
204 | 205 | ||
205 | export default bodyParserConfig; | 206 | export default bodyParserConfig |