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

fix: exact path matching for api endpoints (resolve #194)

This commit is contained in:
Ferdinand Mütsch
2021-04-30 18:08:53 +02:00
parent 0673c26043
commit 11b224fc24
7 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ func NewHealthApiHandler(db *gorm.DB) *HealthApiHandler {
func (h *HealthApiHandler) RegisterRoutes(router *mux.Router) {
r := router.PathPrefix("/health").Subrouter()
r.Methods(http.MethodGet).HandlerFunc(h.Get)
r.Path("").Methods(http.MethodGet).HandlerFunc(h.Get)
}
// @Summary Check the application's health status