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:
parent
68a17950ef
commit
9cb9747e2e
@ -22,7 +22,8 @@ func NewSummaryApiHandler(summaryService services.ISummaryService) *SummaryApiHa
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *SummaryApiHandler) RegisterRoutes(router *mux.Router) {
|
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) {
|
func (h *SummaryApiHandler) Get(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user