Remove useless code

This commit is contained in:
D. Berge
2023-11-02 23:49:42 +01:00
parent c615727acf
commit 4a18cb8a81
2 changed files with 1 additions and 7 deletions

View File

@@ -43,7 +43,6 @@ app.use((req, res, next) => {
app.use(cookieParser());
app.use(mw.auth.jwt);
// app.use(mw.auth.access({path: {allow:["^/login", "^/user$"]}}));
// Adds arbitrary information to the request object
const meta = (key, value) => {

View File

@@ -19,9 +19,4 @@ const options = {
getToken
};
const allow = {
path: [/\/login$/, /\/logout$/, /\/$/, /\/version$/],
useOriginalUrl: false
};
module.exports = expressJWT(options).unless(allow);
module.exports = expressJWT(options);