mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +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',
|
'robots.txt',
|
||||||
'static/.*',
|
'static/.*',
|
||||||
'stats/?',
|
'stats/?',
|
||||||
'tests/frontend(?:/.*)?'
|
'tests/frontend(?:/.*)?',
|
||||||
].join('|')})$`);
|
].join('|')})$`);
|
||||||
|
|
||||||
exports.normalizeAuthzLevel = (level) => {
|
exports.normalizeAuthzLevel = (level) => {
|
||||||
|
@ -198,3 +198,5 @@ exports.expressConfigure = (hookName, args, cb) => {
|
||||||
args.app.use((req, res, next) => { checkAccess(req, res, next).catch(next); });
|
args.app.use((req, res, next) => { checkAccess(req, res, next).catch(next); });
|
||||||
return cb();
|
return cb();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.staticPathsRE = staticPathsRE;
|
||||||
|
|
Loading…
Reference in a new issue