Skip to content

Commit

Permalink
feat: Add urlencoded body parser (#26)
Browse files Browse the repository at this point in the history
* feat: Add urlencoded body parser

* Fix
  • Loading branch information
typeofweb authored Oct 7, 2021
1 parent f3b940b commit 4e6575c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BodyParser from 'body-parser';
import Bodyparser from 'body-parser';
import Express from 'express';
import Stoppable from 'stoppable';

Expand All @@ -7,7 +7,8 @@ import type { AppOptions } from './shared';
export const initApp = () => {
const app = Express();

app.use(BodyParser.json());
app.use(Bodyparser.json());
app.use(Bodyparser.urlencoded({ extended: true }));
app.disable('x-powered-by');

return app;
Expand Down

1 comment on commit 4e6575c

@vercel
Copy link

@vercel vercel bot commented on 4e6575c Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.