Add a /tasks endpoing and extra metdata to crawl tasks

This commit is contained in:
James Mills
2021-02-02 14:58:52 +10:00
parent 5cd5495622
commit 3923ff91ba
4 changed files with 52 additions and 1 deletions

View File

@@ -306,6 +306,7 @@ func (s *Server) initRoutes() {
s.router.POST("/chpasswd", s.NewPasswordHandler())
// Task State
s.router.GET("/tasks", s.TasksHandler())
s.router.GET("/task/:uuid", s.TaskHandler())
s.router.GET("/add", s.AddHandler())