aboutsummaryrefslogtreecommitdiff
path: root/routes/api.js
diff options
context:
space:
mode:
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));