Add new password reset route

This commit is contained in:
Johannes Zellner
2020-02-04 15:27:22 +01:00
parent 0ae9be4de9
commit 86029c1068
2 changed files with 13 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ function initializeExpressSync() {
// login/logout routes
router.post('/api/v1/cloudron/login', routes.cloudron.login);
router.get ('/api/v1/cloudron/logout', routes.cloudron.logout); // this will invalidate the token if any and redirect to /login.html always
router.post('/api/v1/cloudron/password_reset', routes.cloudron.passwordReset);
// developer routes
router.post('/api/v1/developer/login', routes.developer.login);