aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-18 04:51:42 -0300
committerPitu <[email protected]>2017-01-18 04:51:42 -0300
commitde130602f93f05360a3838d93a0f9d1cbb470153 (patch)
treea77f54c0a5b4dc10a9a48690a06b804a2a9398ad /routes
parentAdded browsing galleries from dashboard (diff)
downloadhost.fuwn.me-de130602f93f05360a3838d93a0f9d1cbb470153.tar.xz
host.fuwn.me-de130602f93f05360a3838d93a0f9d1cbb470153.zip
Added changing of tokens from the dashboard
Diffstat (limited to 'routes')
-rw-r--r--routes/api.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/api.js b/routes/api.js
index 523af72..4a1e36f 100644
--- a/routes/api.js
+++ b/routes/api.js
@@ -16,6 +16,8 @@ routes.post ('/upload', (req, res, next) => uploadController.upload(req, res, ne
routes.get ('/albums', (req, res, next) => albumsController.list(req, res, next))
routes.post ('/albums', (req, res, next) => albumsController.create(req, res, next))
routes.get ('/albums/test', (req, res, next) => albumsController.test(req, res, next))
-routes.get ('/token/verify', (req, res, next) => tokenController.verify(req, res))
+routes.get ('/tokens/verify', (req, res, next) => tokenController.verify(req, res))
+routes.get ('/tokens', (req, res, next) => tokenController.list(req, res))
+routes.post ('/tokens/change', (req, res, next) => tokenController.change(req, res))
module.exports = routes