Browse Source

En cours de développement

master
mls-361 9 months ago
parent
commit
1ad0fb35ea
  1. 2
      go.mod
  2. 4
      go.sum
  3. 2
      internal/api/api.go
  4. 1
      internal/components/components.go
  5. 5
      internal/router/router.go

2
go.mod

@ -6,7 +6,7 @@ require (
forge.chapril.org/armen/jw v0.0.0-20210818151220-edd8f137c57a
forge.chapril.org/armen/memory v0.0.0-20210818151319-7833375304b3
forge.chapril.org/armen/model v0.0.0-20210818151340-5240fd23add0
forge.chapril.org/armen/requestor v0.0.0-20210818151404-6bfaccfe5f12
forge.chapril.org/armen/requestor v0.0.0-20210818152630-57a59637bb94
forge.chapril.org/armen/runner v0.0.0-20210818151447-f3652512c45d
forge.chapril.org/armen/workers v0.0.0-20210818151509-2e23246740d1
forge.chapril.org/mls-361/application v0.0.0-20210805205753-c663b93b7e1a

4
go.sum

@ -6,8 +6,8 @@ forge.chapril.org/armen/memory v0.0.0-20210818151319-7833375304b3 h1:u48zZxALcdS
forge.chapril.org/armen/memory v0.0.0-20210818151319-7833375304b3/go.mod h1:xyl3FV9dHJficKKFfN2CUXYs9tCMmaqsYxxQNuBwE9E=
forge.chapril.org/armen/model v0.0.0-20210818151340-5240fd23add0 h1:wVhb7mYJkZrx/Xtk9b9/DWV2fDS45+Yj2JgKHe9j/tQ=
forge.chapril.org/armen/model v0.0.0-20210818151340-5240fd23add0/go.mod h1:vboGfVFhFMfEonHWaOkQqiEGbODOBbNWr0I4Dp3R3O4=
forge.chapril.org/armen/requestor v0.0.0-20210818151404-6bfaccfe5f12 h1:9P8Zf0hSWhWDx5oybrIE8m/ZIoZSPjtadSqm3rDm9Zs=
forge.chapril.org/armen/requestor v0.0.0-20210818151404-6bfaccfe5f12/go.mod h1:mzGQhobQAY4mxaULS9gDL04Fi/yIwPijmW3CIopujjw=
forge.chapril.org/armen/requestor v0.0.0-20210818152630-57a59637bb94 h1:DUulTDYG/b6M+t6TPzHuyJPpgypJt/j1G0WtL/wpx/w=
forge.chapril.org/armen/requestor v0.0.0-20210818152630-57a59637bb94/go.mod h1:mzGQhobQAY4mxaULS9gDL04Fi/yIwPijmW3CIopujjw=
forge.chapril.org/armen/runner v0.0.0-20210818151447-f3652512c45d h1:/X+rSbB043fdImXZ4PW4XsjrbmUbxk2lYGcj2ZKd6ec=
forge.chapril.org/armen/runner v0.0.0-20210818151447-f3652512c45d/go.mod h1:UElsW53JSF14TlZWr+Z1WYlRTXf90UNSBCq6WOzE8cE=
forge.chapril.org/armen/workers v0.0.0-20210818151509-2e23246740d1 h1:gpTGo6Abo4BrXFr9BZxHuNyyGMchI33hGvKVeUPbkr8=

2
internal/api/api.go

@ -143,7 +143,7 @@ func Build(ccs *components.Components) {
router.PostJSON("/api/job/create", api.debug(api.createJob))
router.GetJSON("/api/job/next/:namespace", api.trace(api.nextJob))
router.PostJSON("/api/job/update", api.debug(api.updateJob))
router.PutJSON("/api/job/update", api.debug(api.updateJob))
router.PostJSON("/api/workflow/create", api.debug(api.createWorkflow))
}

1
internal/components/components.go

@ -60,6 +60,7 @@ type Router interface {
ServeFiles(path string, root http.FileSystem)
GetJSON(path string, handler jsonapi.Handler)
PostJSON(path string, handler jsonapi.Handler)
PutJSON(path string, handler jsonapi.Handler)
}
// Server AFAIRE.

5
internal/router/router.go

@ -99,6 +99,11 @@ func (cr *router) PostJSON(path string, handler jsonapi.Handler) {
cr.handleJSON(http.MethodPost, path, handler)
}
// PutJSON AFAIRE.
func (cr *router) PutJSON(path string, handler jsonapi.Handler) {
cr.handleJSON(http.MethodPut, path, handler)
}
/*
######################################################################################################## @(°_°)@ #######
*/

Loading…
Cancel
Save