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

feat: add endpoint compatible to github readme stats (resolve #65)

This commit is contained in:
Ferdinand Mütsch
2021-02-06 22:40:54 +01:00
parent fca12f522f
commit 6b1f1c1360
6 changed files with 316 additions and 304 deletions

View File

@ -29,7 +29,7 @@ func NewSummariesHandler(userService services.IUserService, summaryService servi
}
func (h *SummariesHandler) RegisterRoutes(router *mux.Router) {
r := router.PathPrefix("/wakatime/v1/users/{user}/summaries").Subrouter()
r := router.PathPrefix("/compat/wakatime/v1/users/{user}/summaries").Subrouter()
r.Use(
middlewares.NewAuthenticateMiddleware(h.userSrvc).Handler,
)