hedgedoc/lib/web
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
..
auth Multiple emails from LDAP are already an Array 2018-03-09 14:39:08 +01:00
imageRouter Refactoring imageRouter to modularity 2018-03-20 11:00:11 +01:00
middleware Rename checkURiValid.js to checkURIValid.js 2017-05-08 20:13:55 +08:00
baseRouter.js refactor(baseRouter.js): Adjust style fit standard 2017-05-08 19:29:06 +08:00
historyRouter.js refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
noteRouter.js Allow posting new note with content 2018-01-18 10:41:58 +01:00
statusRouter.js refactor(app.js): Extract status pages 2017-05-08 19:24:37 +08:00
userRouter.js refactor(app.js): Extract /me page 2017-05-08 19:24:38 +08:00
utils.js Allow posting new note with content 2018-01-18 10:41:58 +01:00