summaryrefslogtreecommitdiff
path: root/lib/web/middleware (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix eslint warningsSheogorath2019-05-311-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>
* Add config for toobusy middlewareSheogorath2019-05-251-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>
* Do final internal renameingSheogorath2018-06-241-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>
* Change config to camel case with backwards compatibilitySheogorath2018-03-251-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>
* Rename checkURiValid.js to checkURIValid.jsMax Wu2017-05-081-0/+0
|
* refactor(app.js): Extract tooBusyBoHong Li2017-05-081-0/+13
|
* refactor(app.js): Extract middleware to moduleBoHong Li2017-05-082-0/+31
extract check URi is valid, redirect without trailing slashes