From 533a2536e2739c42558c646016e6863e863d1f89 Mon Sep 17 00:00:00 2001 From: Kevin Busse Date: Thu, 17 Aug 2017 15:53:12 +0200 Subject: [PATCH] Fix chi routing --- api/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server.go b/api/server.go index 918d9e2e..9b1d847d 100644 --- a/api/server.go +++ b/api/server.go @@ -36,12 +36,12 @@ func (s *HttpServer) Start(version string) { r.Route("/status", func(r chi.Router) { r.Use(statusCtx(s.Stats)) r.Get("/", getStatus) - r.Get("/:planID", getPlanStatus) + r.Get("/{planID}", getPlanStatus) }) r.Route("/backup", func(r chi.Router) { r.Use(configCtx(*s.Config)) - r.Post("/:planID", postBackup) + r.Post("/{planID}", postBackup) }) FileServer(r,"/storage", http.Dir(s.Config.StoragePath))