feat: add cmd task call
This commit is contained in:
@@ -29,6 +29,8 @@ func initPublicAPIRoutes(api *gin.RouterGroup, c *Controllers) {
|
||||
internalAPI.Use(middleware.LocalhostOnly())
|
||||
{
|
||||
internalAPI.POST("/tasks/sync-repo-status", c.Task.SyncRepoTasks)
|
||||
internalAPI.POST("/tasks/execute/:id", c.Executor.ExecuteTask)
|
||||
internalAPI.POST("/tasks/toggle/:id", c.Task.ToggleTask)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user