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

@ -39,7 +39,7 @@ func (h *HeartbeatApiHandler) RegisterRoutes(router *mux.Router) {
middlewares.NewAuthenticateMiddleware(h.userSrvc).Handler,
customMiddleware.NewWakatimeRelayMiddleware().Handler,
)
r.Methods(http.MethodPost).HandlerFunc(h.Post)
r.Path("").Methods(http.MethodPost).HandlerFunc(h.Post)
}
// @Summary Push a new heartbeat