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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user