Browse Source

En cours de développement

master
mls-361 1 year ago
parent
commit
60be3fdbe6
  1. 10
      internal/api/api.go

10
internal/api/api.go

@ -135,14 +135,14 @@ func Build(ccs *components.Components) {
api := newAPI(ccs)
router := ccs.Router
router.Get("/status", api.debug(func(r *jsonapi.Request) {
router.Get("/api/status", api.debug(func(r *jsonapi.Request) {
r.RenderOK()
}))
router.Post("/job/create", api.debug(api.createJob))
router.Get("/job/next/:namespace", api.trace(api.nextJob))
router.Post("/job/update", api.debug(api.updateJob))
router.Post("/workflow/create", api.debug(api.createWorkflow))
router.Post("/api/job/create", api.debug(api.createJob))
router.Get("/api/job/next/:namespace", api.trace(api.nextJob))
router.Post("/api/job/update", api.debug(api.updateJob))
router.Post("/api/workflow/create", api.debug(api.createWorkflow))
}
/*

Loading…
Cancel
Save