mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
sessions: export staticPathsRE to be reused in tests.
This commit is contained in:
parent
d696a048dc
commit
fd285c7748
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue