From c7459472818f779d260aeafe72fa5726ccf72b27 Mon Sep 17 00:00:00 2001 From: Howl Date: Tue, 6 Sep 2016 19:15:37 +0200 Subject: [PATCH] add peppymethods also in /v1, because new osu-web does so --- app/start.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/start.go b/app/start.go index b511d52..17f70c3 100644 --- a/app/start.go +++ b/app/start.go @@ -120,6 +120,14 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine { // User Managing + meta gv1.GET("/tokens/fix_privileges", Method(v1.TokenFixPrivilegesGET, common.PrivilegeManageUser, common.PrivilegeAPIMeta)) + + // in the new osu-web, the old endpoints are also in /v1 it seems. So /shrug + p.GET("/get_user", PeppyMethod(peppy.GetUser)) + p.GET("/get_match", PeppyMethod(peppy.GetMatch)) + p.GET("/get_user_recent", PeppyMethod(peppy.GetUserRecent)) + p.GET("/get_user_best", PeppyMethod(peppy.GetUserBest)) + p.GET("/get_scores", PeppyMethod(peppy.GetScores)) + p.GET("/get_beatmaps", PeppyMethod(peppy.GetBeatmap)) } api.GET("/status", internals.Status)