change in referencing CSS resources to allow easier relative linking

This commit is contained in:
zadam
2019-01-27 22:34:41 +01:00
parent f90ed99a40
commit ba1ca506af
3 changed files with 4 additions and 2 deletions

View File

@@ -135,6 +135,8 @@ function register(app) {
filesRoute.uploadFile, apiResultHandler);
route(GET, '/api/notes/:noteId/download', [auth.checkApiAuthOrElectron], filesRoute.downloadFile);
// this "hacky" path is used for easier referencing of CSS resources
route(GET, '/api/notes/download/:noteId', [auth.checkApiAuthOrElectron], filesRoute.downloadFile);
apiRoute(GET, '/api/notes/:noteId/attributes', attributesRoute.getEffectiveNoteAttributes);
apiRoute(PUT, '/api/notes/:noteId/attributes', attributesRoute.updateNoteAttributes);