mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:47:07 +00:00
Remove useless code
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user