How to use @adonisjs/bodyparser - 1 common examples

To help you get started, we’ve selected a few @adonisjs/bodyparser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adonisjs / adonis-framework / packages / core / providers / AppProvider.ts View on Github external
this.$container.bind('Adonis/Middleware/BodyParser', (app) => {
      const config = app.use('Adonis/Src/Config').get('bodyparser', {})
      return new BodyParserMiddleware(config)
    })
  }

@adonisjs/bodyparser

BodyParser middleware for AdonisJS http server to read and parse request body

MIT
Latest version published 7 months ago

Package Health Score

64 / 100
Full package analysis

Popular @adonisjs/bodyparser functions