From 446e626f9f1244f0354cea7ac35c081fa16e4dbd Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Tue, 22 Oct 2019 09:47:11 +0200 Subject: [PATCH] gateway: fix project create run http method Make it a POST instead of a PUT. --- internal/services/gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/gateway/gateway.go b/internal/services/gateway/gateway.go index 39b4ade..95a9e76 100644 --- a/internal/services/gateway/gateway.go +++ b/internal/services/gateway/gateway.go @@ -250,7 +250,7 @@ func (g *Gateway) Run(ctx context.Context) error { apirouter.Handle("/projects/{projectref}", authForcedHandler(deleteProjectHandler)).Methods("DELETE") apirouter.Handle("/projects/{projectref}/reconfig", authForcedHandler(projectReconfigHandler)).Methods("PUT") apirouter.Handle("/projects/{projectref}/updaterepolinkedaccount", authForcedHandler(projectUpdateRepoLinkedAccountHandler)).Methods("PUT") - apirouter.Handle("/projects/{projectref}/createrun", authForcedHandler(projectCreateRunHandler)).Methods("PUT") + apirouter.Handle("/projects/{projectref}/createrun", authForcedHandler(projectCreateRunHandler)).Methods("POST") apirouter.Handle("/projectgroups/{projectgroupref}/secrets", authForcedHandler(secretHandler)).Methods("GET") apirouter.Handle("/projects/{projectref}/secrets", authForcedHandler(secretHandler)).Methods("GET")