Skip to content

Commit

Permalink
add peppymethods also in /v1, because new osu-web does so
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Sep 6, 2016
1 parent 1826246 commit c745947
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c745947

Please sign in to comment.