hedgedoc/lib
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
..
config Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
migrations Add missing catch 2020-12-02 19:39:06 +01:00
models Run database migrations automatically on startup 2021-02-27 21:33:05 +01:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Check for existing notes on POST and dont override them 2021-03-29 23:00:34 +02:00
workers Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
csp.js Use new uuid export 2021-02-16 22:25:38 +01:00
errors.js Check for existing notes on POST and dont override them 2021-03-29 23:00:34 +02:00
history.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
letter-avatars.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
logger.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
realtime.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
response.js Replace request library with node-fetch 2021-03-12 22:27:49 +01:00
utils.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00