aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-02-07 04:32:55 -0300
committerPitu <[email protected]>2017-02-07 04:32:55 -0300
commite05a7c751e499f8b5c347d1ad71692ffa5848442 (patch)
treef2c1cd31749684ca9fa18995a58fd0fbea8bc184 /routes
parentMerge pull request #11 from PascalTemel/master (diff)
downloadhost.fuwn.me-e05a7c751e499f8b5c347d1ad71692ffa5848442.tar.xz
host.fuwn.me-e05a7c751e499f8b5c347d1ad71692ffa5848442.zip
Added public album sharing :ok_hand:
Diffstat (limited to 'routes')
-rw-r--r--routes/api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/api.js b/routes/api.js
index 5aa10ea..b3ff798 100644
--- a/routes/api.js
+++ b/routes/api.js
@@ -22,6 +22,7 @@ routes.post ('/upload', (req, res, next) => uploadController.upload(req, res, ne
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/:id', (req, res, next) => uploadController.list(req, res, next))
routes.get ('/album/:id/:page', (req, res, next) => uploadController.list(req, res, next))