Implement client side enable, disable, edit

This commit is contained in:
bel
2020-03-15 20:14:03 +00:00
parent 4467094230
commit 0971908da7
8 changed files with 63 additions and 18 deletions

View File

@@ -13,11 +13,11 @@ func (s *Server) Routes() error {
handler http.HandlerFunc
}{
{
path: fmt.Sprintf("/upserts"),
handler: s.gzip(s.authenticate(s.upserts)),
path: fmt.Sprintf("/api/job/upsert"),
handler: s.gzip(s.authenticate(s.upsert)),
},
{
path: fmt.Sprintf("/list"),
path: fmt.Sprintf("/api/job/list"),
handler: s.gzip(s.authenticate(s.list)),
},
{