aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-30 05:43:15 -0300
committerPitu <[email protected]>2017-01-30 05:43:15 -0300
commitec9de34cb34e333c1b60dbc9c0251a835095fdc6 (patch)
tree778981ee88301a3395a485de65af09d8d04bdc73 /routes
parentFixed wrong error text (diff)
downloadhost.fuwn.me-ec9de34cb34e333c1b60dbc9c0251a835095fdc6.tar.xz
host.fuwn.me-ec9de34cb34e333c1b60dbc9c0251a835095fdc6.zip
Added changePassword
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 07e13f0..5aa10ea 100644
--- a/routes/api.js
+++ b/routes/api.js
@@ -14,6 +14,7 @@ routes.get ('/check', (req, res, next) => {
routes.post ('/login', (req, res, next) => authController.verify(req, res, next))
routes.post ('/register', (req, res, next) => authController.register(req, res, next))
+routes.post ('/password/change', (req, res, next) => authController.changePassword(req, res, next))
routes.get ('/uploads', (req, res, next) => uploadController.list(req, res))
routes.get ('/uploads/:page', (req, res, next) => uploadController.list(req, res))