aboutsummaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/controller.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/controller/controller.go b/controller/controller.go
index 3e029f0..7cbee6a 100644
--- a/controller/controller.go
+++ b/controller/controller.go
@@ -49,3 +49,8 @@ func (e *Env) DeleteEntry(c *gin.Context) {
e.Entries.Delete(id)
c.HTML(http.StatusOK, "entry", entry)
}
+
+func (e *Env) GetJobs(c *gin.Context) {
+ jobs := e.Worker.GetJobs()
+ c.JSON(http.StatusOK, jobs)
+}