From a0349c1de9d0c5b7788ed82040d3565ab22eaebd Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 15 Feb 2023 21:34:57 +0100 Subject: [PATCH] update a route and removed the promotion thingy --- .drone.yml | 5 ----- main.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index f666785..597cd22 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,11 +16,6 @@ steps: - docker build -t drone-example . - docker rm -f drone-example - docker run -d -p 127.241.212.77:1098:5000 --restart always --name drone-example drone-example - when: - event: - - promote - target: - - production volumes: - name: docker-socket diff --git a/main.go b/main.go index f097d72..c03247c 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( func main() { r := http.NewServeMux() - r.HandleFunc("/foo", func(w http.ResponseWriter, r *http.Request) { + r.HandleFunc("/foo/sum", func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodGet { http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) return