summaryrefslogtreecommitdiffstats
path: root/config/bodyparser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'config/bodyparser.ts')
-rw-r--r--config/bodyparser.ts9
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
8import { BodyParserConfig } from '@ioc:Adonis/Core/BodyParser'; 8import { BodyParserConfig } from '@adonisjs/core/bodyparser'
9import { defineConfig } from '@adonisjs/core/bodyparser'
9 10
10const bodyParserConfig: BodyParserConfig = { 11const 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
205export default bodyParserConfig; 206export default bodyParserConfig