From 9b3607787940bc5bb331e19c8160d6e07e970601 Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Mon, 26 Jun 2023 10:46:06 +0200 Subject: [PATCH] copy-paste error mux --- wdm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdm.go b/wdm.go index bbec441..503c2b2 100644 --- a/wdm.go +++ b/wdm.go @@ -41,7 +41,7 @@ func main() { r.HandleFunc("/api/v1/pho", showPhotoHandler).Methods("GET", "OPTIONS") r.HandleFunc("/api/v1/pho/{id:[0-9]+}", getPhotoHandler).Methods("GET", "OPTIONS") r.HandleFunc("/api/v1/pho/itb/{id:[0-9]+}", getPhotoForItbHandler).Methods("GET", "OPTIONS") - r.HandleFunc("/api/v1/pho/itb/{id:[0-9]+}", getPhotoForIteHandler).Methods("GET", "OPTIONS") + r.HandleFunc("/api/v1/pho/ite/{id:[0-9]+}", getPhotoForIteHandler).Methods("GET", "OPTIONS") r.HandleFunc("/api/v1/pho/{id:[0-9]+}", updatePhotoHandler).Methods("PUT", "OPTIONS") r.HandleFunc("/api/v1/meas", createMeasureHandler).Methods("POST", "OPTIONS")