Implement get_scores in peppyapi

This commit is contained in:
Howl
2016-08-15 21:13:40 +02:00
parent b9d35ac46d
commit 954ec755b8
4 changed files with 84 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine {
api.GET("/get_match", PeppyMethod(peppy.GetMatch))
api.GET("/get_user_recent", PeppyMethod(peppy.GetUserRecent))
api.GET("/get_user_best", PeppyMethod(peppy.GetUserBest))
api.GET("/get_scores", PeppyMethod(peppy.GetScores))
}
r.NoRoute(v1.Handle404)