implement enable disable with client side display and mod
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user