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
migrations
models
ot
web Check for existing notes on POST and dont override them 2021-03-29 23:00:34 +02:00
workers
csp.js
errors.js Check for existing notes on POST and dont override them 2021-03-29 23:00:34 +02:00
history.js
letter-avatars.js
logger.js
realtime.js
response.js Replace request library with node-fetch 2021-03-12 22:27:49 +01:00
utils.js