sessions: export staticPathsRE to be reused in tests.

session-creation-tests
John McLear 2021-03-05 07:52:26 +00:00
parent d696a048dc
commit fd285c7748
1 changed files with 3 additions and 1 deletions

View File

@ -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;