Fixup the simple auth logout route and add tests

This commit is contained in:
Johannes Zellner
2015-10-11 12:30:10 +02:00
parent 982cd1e1f3
commit 3234e0e3f0
3 changed files with 73 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ function initializeExpressSync() {
// basic auth
router.post('/api/v1/simpleauth/login', routes.simpleauth.login);
router.get ('/api/v1/simpleauth/logout', routes.simpleauth.logout);
router.get ('/api/v1/simpleauth/logout', profileScope, routes.simpleauth.logout);
// app routes
router.get ('/api/v1/apps', appsScope, routes.apps.getApps);