tasks: add route to list tasks

This commit is contained in:
Girish Ramakrishnan
2018-12-08 20:12:23 -08:00
parent d8225ad653
commit 8502bf4bfa
5 changed files with 92 additions and 4 deletions

View File

@@ -136,6 +136,7 @@ function initializeExpressSync() {
router.get ('/api/v1/cloudron/eventlog', cloudronScope, routes.eventlog.get);
// tasks
router.get ('/api/v1/tasks', settingsScope, routes.tasks.list);
router.get ('/api/v1/tasks/:taskId', settingsScope, routes.tasks.get);
router.post('/api/v1/tasks/:taskId/stop', settingsScope, routes.tasks.stopTask);