implement enable disable with client side display and mod

This commit is contained in:
bel
2020-03-16 02:10:31 +00:00
parent 89822b7012
commit a8e50d3ce4
6 changed files with 119 additions and 6 deletions

View File

@@ -24,6 +24,18 @@ func (s *Server) Routes() error {
path: fmt.Sprintf("/api/job/list"),
handler: s.gzip(s.authenticate(s.list)),
},
{
path: fmt.Sprintf("/api/job/delete/%s", router.Wildcard),
handler: s.gzip(s.authenticate(s.delete)),
},
{
path: fmt.Sprintf("/api/job/disable/%s", router.Wildcard),
handler: s.gzip(s.authenticate(s.disable)),
},
{
path: fmt.Sprintf("/api/job/enable/%s", router.Wildcard),
handler: s.gzip(s.authenticate(s.enable)),
},
{
path: fmt.Sprintf("%s%s", wildcard, wildcard),
handler: s.gzip(s.authenticate(s.static)),