hedgedoc/lib/web
Erik Michelson 124b064252
Check for existing notes on POST and dont override them
Previously one could override notes in FreeURL-mode by sending multiple POST requests to the /new/<alias> endpoint. This commit adds a check for an already existing note with the requested alias and returns a HTTP 409 Conflict error in case that happens.

Signed-off-by: Erik Michelson <opensource@erik.michelson.eu>
2021-03-29 23:00:34 +02:00
..
auth Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
imageRouter Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
middleware Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
note Check for existing notes on POST and dont override them 2021-03-29 23:00:34 +02:00
baseRouter.js Move note actions to their own file. 2019-10-27 13:51:53 +01:00
historyRouter.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
statusRouter.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
userRouter.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
utils.js Allow posting new note with content 2018-01-18 10:41:58 +01:00