Skip to content

Commit c90f9a7

Browse files
committed
fix 2fa middelware
1 parent abab130 commit c90f9a7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: src/index.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,7 @@ app.use(
5959
);
6060

6161
app.use(cookieParser());
62-
app.use((req, res, next) => {
63-
if (req.originalUrl === '/webhook') {
64-
next();
65-
} else {
66-
express.json()(req, res, next);
67-
}
68-
});
62+
app.use(express.json);
6963
app.use(express.urlencoded({ extended: true }));
7064
app.use(
7165
session({

0 commit comments

Comments
 (0)