1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: missing summary api route

This commit is contained in:
Ferdinand Mütsch 2021-02-03 21:40:01 +01:00
parent 68a17950ef
commit 9cb9747e2e

View File

@ -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) {