Skip to content

Commit 38868e9

Browse files
committed
Use express.json
1 parent 0869e12 commit 38868e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ module.exports = (sequelize) => {
3939
app.use(flash());
4040
app.use("/discordAuth", discordAuthRoute);
4141
app.use("/join", discordJoinRoute);
42-
app.use("/webhooks", webhookProxyRoute);
4342
app.use("/authenticate_faculty", facultyAuthRoute);
4443
app.use("/metrics", metricsRoute);
4544

45+
app.use(express.json());
46+
app.use("/webhooks", webhookProxyRoute);
47+
4648
app.use("*", defaultRouteErrorHandler);
4749

4850
return app;

0 commit comments

Comments
 (0)