Add basic login/logout logic
This commit is contained in:
@@ -139,6 +139,10 @@ function initializeExpressSync() {
|
||||
|
||||
router.get ('/api/v1/cloudron/avatar', routes.settings.getCloudronAvatar); // this is a public alias for /api/v1/settings/cloudron_avatar
|
||||
|
||||
// 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
|
||||
|
||||
// developer routes
|
||||
router.post('/api/v1/developer/login', routes.developer.login);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user