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

@@ -34,7 +34,7 @@ func NewBadgeHandler(summaryService services.ISummaryService, userService servic
func (h *BadgeHandler) RegisterRoutes(router *mux.Router) {
// no auth middleware here, handler itself resolves the user
r := router.PathPrefix("/shields/v1/{user}").Subrouter()
r := router.PathPrefix("/compat/shields/v1/{user}").Subrouter()
r.Methods(http.MethodGet).HandlerFunc(h.Get)
}