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 Remove manual LZString compression for partial socket io event data 2017-01-02 10:52:47 +08:00
web Refactoring imageRouter to modularity 2018-03-20 11:00:11 +01:00
workers refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
csp.js Add config option for report URI in CSP 2018-03-14 17:57:41 +01:00
history.js refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
letter-avatars.js Use strict mode in all backend files 2017-03-14 13:02:43 +08:00
logger.js refactor(logger): Refactor logger.js 2017-05-08 19:24:37 +08:00
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 switch to __dirname 2017-06-02 11:34:35 +01:00