return profileLocked in config route

part of #704
This commit is contained in:
Girish Ramakrishnan
2020-07-09 17:18:06 -07:00
parent 3c3f81365b
commit 6ea2aa4a54
2 changed files with 3 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ function initializeExpressSync() {
router.post('/api/v1/backups/create', token, authorizeAdmin, routes.backups.startBackup);
router.post('/api/v1/backups/cleanup', token, authorizeAdmin, routes.backups.cleanup);
// config route (for dashboard)
// config route (for dashboard). can return some private configuration unlike status
router.get ('/api/v1/config', token, routes.cloudron.getConfig);
// working off the user behind the provided token