aboutsummaryrefslogtreecommitdiff
path: root/routes/api.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-10-04 02:05:38 -0300
committerPitu <[email protected]>2017-10-04 02:05:38 -0300
commit992b632d1a0b6dc6e44daf79bbfceb09f0260770 (patch)
treec2c19afd3d22b806c95e71f0c0bb7c33f733e80c /routes/api.js
parentMissing semicolon (diff)
downloadhost.fuwn.me-992b632d1a0b6dc6e44daf79bbfceb09f0260770.tar.xz
host.fuwn.me-992b632d1a0b6dc6e44daf79bbfceb09f0260770.zip
Added album downloading through front-end
Diffstat (limited to 'routes/api.js')
-rw-r--r--routes/api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/api.js b/routes/api.js
index 83d3bc1..5a4d355 100644
--- a/routes/api.js
+++ b/routes/api.js
@@ -21,6 +21,7 @@ routes.post('/upload', (req, res, next) => uploadController.upload(req, res, nex
routes.post('/upload/delete', (req, res, next) => uploadController.delete(req, res, next));
routes.post('/upload/:albumid', (req, res, next) => uploadController.upload(req, res, next));
routes.get('/album/get/:identifier', (req, res, next) => albumsController.get(req, res, next));
+routes.get('/album/zip/:identifier', (req, res, next) => albumsController.generateZip(req, res, next));
routes.get('/album/:id', (req, res, next) => uploadController.list(req, res, next));
routes.get('/album/:id/:page', (req, res, next) => uploadController.list(req, res, next));
routes.get('/albums', (req, res, next) => albumsController.list(req, res, next));