summaryrefslogtreecommitdiff
path: root/lib/web/middleware (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-25Add config for toobusy middlewareSheogorath1-0/+4
With very low CPU frequency or bad IO situation, as well as not-loaded JS CodiMD happens to present unneeded "I'm busy"-messages to users. This patch allows to configure the lag. The default is taken from the libray but set in our own default configs. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Do final internal renameingSheogorath1-0/+10
A little minor change, by moving the CodiMD version header in its own middleware. Should simplify to determine the version number of the Backend in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-25Change config to camel case with backwards compatibilitySheogorath1-3/+3
This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-05-08Rename checkURiValid.js to checkURIValid.jsMax Wu1-0/+0
2017-05-08refactor(app.js): Extract tooBusyBoHong Li1-0/+13
2017-05-08refactor(app.js): Extract middleware to moduleBoHong Li2-0/+31
extract check URi is valid, redirect without trailing slashes