hedgedoc/lib/web
Sheogorath 0621d7a72d
Fix usage of new URL API
Due to the deprecation of the old `url`-API provided by NodeJS we
replaced `url.resolve` with `url.URL.resolve`, which doesn't exist.

This patch fixes the local filesystem upload of CodiMD by using the new
API correctly. Creating an URL object and using its href.

Some more background:
https://nodejs.org/api/url.html#url_url_href
https://nodejs.org/api/url.html#url_url_resolve_from_to

Fixes https://github.com/hackmdio/codimd/issues/1102

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-12-18 14:52:18 +01:00
..
auth Fix typo 2018-11-27 22:14:37 +08:00
imageRouter Fix usage of new URL API 2018-12-18 14:52:18 +01:00
middleware Do final internal renameing 2018-06-24 14:05:41 +02: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 Add full version string 2018-11-11 12:44:19 +01:00
userRouter.js Prevent subdirectories in user export 2018-11-28 09:13:28 +01:00
utils.js Allow posting new note with content 2018-01-18 10:41:58 +01:00