summaryrefslogtreecommitdiff
path: root/lib/web/middleware (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-27Move note actions to their own file.David Mehren2-4/+4
Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>
2019-05-31Fix eslint warningsSheogorath1-1/+0
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
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