sessions: export staticPathsRE to be reused in tests.
parent
d696a048dc
commit
fd285c7748
|
@ -23,7 +23,7 @@ const staticPathsRE = new RegExp(`^/(?:${[
|
|||
'robots.txt',
|
||||
'static/.*',
|
||||
'stats/?',
|
||||
'tests/frontend(?:/.*)?'
|
||||
'tests/frontend(?:/.*)?',
|
||||
].join('|')})$`);
|
||||
|
||||
exports.normalizeAuthzLevel = (level) => {
|
||||
|
@ -198,3 +198,5 @@ exports.expressConfigure = (hookName, args, cb) => {
|
|||
args.app.use((req, res, next) => { checkAccess(req, res, next).catch(next); });
|
||||
return cb();
|
||||
};
|
||||
|
||||
exports.staticPathsRE = staticPathsRE;
|
||||
|
|
Loading…
Reference in New Issue