From 9cb9747e2e1b51a0eae31cd033c4674713f53da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Wed, 3 Feb 2021 21:40:01 +0100 Subject: [PATCH] fix: missing summary api route --- routes/api/summary.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/api/summary.go b/routes/api/summary.go index a306b2f..8b39970 100644 --- a/routes/api/summary.go +++ b/routes/api/summary.go @@ -22,7 +22,8 @@ func NewSummaryApiHandler(summaryService services.ISummaryService) *SummaryApiHa } func (h *SummaryApiHandler) RegisterRoutes(router *mux.Router) { - router.Methods(http.MethodGet).HandlerFunc(h.Get) + r := router.PathPrefix("/summary").Subrouter() + r.Methods(http.MethodGet).HandlerFunc(h.Get) } func (h *SummaryApiHandler) Get(w http.ResponseWriter, r *http.Request) {