Implement get_user_best and get_user_recent in peppyapi

This commit is contained in:
Howl
2016-05-28 20:24:39 +02:00
parent db323908ac
commit 6a374a4f9d
8 changed files with 129 additions and 5 deletions

View File

@@ -70,6 +70,8 @@ func Start(conf common.Conf, dbO *sql.DB) *gin.Engine {
// peppyapi
api.GET("/get_user", PeppyMethod(peppy.GetUser))
api.GET("/get_match", PeppyMethod(peppy.GetMatch))
api.GET("/get_user_recent", PeppyMethod(peppy.GetUserRecent))
api.GET("/get_user_best", PeppyMethod(peppy.GetUserBest))
}
r.NoRoute(v1.Handle404)