From 8d72d2e69a5be9fe13a7e1ccafbd18f0e42ddf16 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 30 Aug 2024 15:57:54 +0200 Subject: [PATCH] very very last oc-lib --- controllers/workflow.go | 4 ++++ go.mod | 2 +- go.sum | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/controllers/workflow.go b/controllers/workflow.go index 8c5beeb..7199386 100644 --- a/controllers/workflow.go +++ b/controllers/workflow.go @@ -71,6 +71,10 @@ func (o *WorkflowController) Post() { utils.PEER.String(): { tools.POST: oclib.GetPath(oclib.LibDataEnum(oclib.PEER)) + "/oc", }, + utils.WORKFLOW.String(): { + tools.PUT: oclib.GetPath(oclib.LibDataEnum(oclib.WORKFLOW)) + "/oc/workflow/:id", + tools.DELETE: oclib.GetPath(oclib.LibDataEnum(oclib.WORKFLOW)) + "/oc/workflow/:id", + }, } var res map[string]interface{} json.Unmarshal(o.Ctx.Input.CopyBody(10000000), &res) diff --git a/go.mod b/go.mod index 275bc98..79ad523 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.0 toolchain go1.22.4 require ( - cloud.o-forge.io/core/oc-lib v0.0.0-20240830071403-db78c70dc349 + cloud.o-forge.io/core/oc-lib v0.0.0-20240830131445-af18dba5563c github.com/beego/beego/v2 v2.2.2 github.com/goraz/onion v0.1.3 github.com/nats-io/nats.go v1.37.0 diff --git a/go.sum b/go.sum index c8f7fd8..e1e793d 100644 --- a/go.sum +++ b/go.sum @@ -246,6 +246,8 @@ cloud.o-forge.io/core/oc-lib v0.0.0-20240828151401-a53e3c987d67 h1:d3wYOjR4rc86h cloud.o-forge.io/core/oc-lib v0.0.0-20240828151401-a53e3c987d67/go.mod h1:FIJD0taWLJ5pjQLJ6sfE2KlTkvbmk5SMcyrxdjsaVz0= cloud.o-forge.io/core/oc-lib v0.0.0-20240830071403-db78c70dc349 h1:bEIY1lCsA78/mJqFE0gV6likAv5ZifH3RMnLJxiSk3o= cloud.o-forge.io/core/oc-lib v0.0.0-20240830071403-db78c70dc349/go.mod h1:FIJD0taWLJ5pjQLJ6sfE2KlTkvbmk5SMcyrxdjsaVz0= +cloud.o-forge.io/core/oc-lib v0.0.0-20240830131445-af18dba5563c h1:4ZoM9ONJiaeLHSi0s8gsCe4lHuRHXkfK+eDSnTCspa0= +cloud.o-forge.io/core/oc-lib v0.0.0-20240830131445-af18dba5563c/go.mod h1:FIJD0taWLJ5pjQLJ6sfE2KlTkvbmk5SMcyrxdjsaVz0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=