mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
90c5ab0833
This commit adds a `useUnless` helper method which can be used as a middleware for express. It receives an express-middleware and an array of paths. When a request matches one of the given paths, this middleware does nothing. Otherwise the given middleware is called. For the express-session middleware this helper middleware is used to avoid session creation on purely status routes. See #1446 Signed-off-by: Erik Michelson <github@erik.michelson.eu> |
||
---|---|---|
.. | ||
config | ||
migrations | ||
models | ||
ot | ||
web | ||
workers | ||
csp.js | ||
errors.js | ||
history.js | ||
letter-avatars.js | ||
logger.js | ||
prometheus.js | ||
realtime.js | ||
response.js | ||
utils.js |