hedgedoc/lib
Sheogorath 1756e76dc3
Refactoring imageRouter to modularity
This should make the imageRouter more modular and easier to extent. Also
a lot of code duplication was removed which should simplify maintenance
in future.

In the new setup we only need to provide a new module file which exports
a function called `uploadImage` and takes a filePath and a callback as
argument. The callback itself takes an error and an url as parameter.
This eliminates the need of a try-catch-block around the statement and
re-enabled the optimization in NodeJS.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-20 11:00:11 +01:00
..
config Refactoring imageRouter to modularity 2018-03-20 11:00:11 +01:00
migrations Fix field type to prevent data truncation of authorship (#721) 2018-02-09 14:27:06 +01:00
models Fix field type to prevent data truncation of authorship (#721) 2018-02-09 14:27:06 +01:00
ot
web Refactoring imageRouter to modularity 2018-03-20 11:00:11 +01:00
workers
csp.js Add config option for report URI in CSP 2018-03-14 17:57:41 +01:00
history.js
letter-avatars.js
logger.js
realtime.js don't require referer to find note id in socket.io connections (fixes #623) 2018-02-05 14:26:42 +01:00
response.js Fix to show 500 message when got error in parseNoteId 2018-02-17 00:57:00 +08:00
utils.js