Skip to content

Commit

Permalink
feat: increase request body size limit to 5mb
Browse files Browse the repository at this point in the history
You can now send json payloads of upto 5mb
  • Loading branch information
taufiq committed Oct 30, 2019
1 parent edac009 commit 54a41a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
node_modules/
node_modules/
.vscode/
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const menuRouter = require('./routes/menus')
const app = express();

app.use(logger('dev'));
app.use(express.json());
app.use(express.json({ limit: '5mb'}));
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
Expand Down

0 comments on commit 54a41a3

Please sign in to comment.