Add restart route for atomicity

This commit is contained in:
Girish Ramakrishnan
2019-12-20 10:29:29 -08:00
parent 887cbb0b22
commit 2692f6ef4e
6 changed files with 109 additions and 1 deletions

View File

@@ -277,6 +277,7 @@ function initializeExpressSync() {
router.get ('/api/v1/apps/:id/backups', appsManageScope, routes.apps.listBackups);
router.post('/api/v1/apps/:id/stop', appsManageScope, routes.apps.stopApp);
router.post('/api/v1/apps/:id/start', appsManageScope, routes.apps.startApp);
router.post('/api/v1/apps/:id/restart', appsManageScope, routes.apps.restartApp);
router.get ('/api/v1/apps/:id/logstream', appsManageScope, routes.apps.getLogStream);
router.get ('/api/v1/apps/:id/logs', appsManageScope, routes.apps.getLogs);
router.get ('/api/v1/apps/:id/exec', appsManageScope, routes.apps.exec);