beatmap ranking in API

This commit is contained in:
Howl
2016-04-27 20:03:06 +02:00
parent 32029d963e
commit 3782ed3c7c
3 changed files with 73 additions and 1 deletions

View File

@@ -46,6 +46,9 @@ func Start(conf common.Conf, db *sql.DB) *gin.Engine {
gv1.POST("/friends/del", Method(v1.FriendsDelPOST, db, common.PrivilegeWrite))
gv1.GET("/friends/del/:id", Method(v1.FriendsDelGET, db, common.PrivilegeWrite))
// Admin: beatmap
gv1.POST("/beatmaps/set_status", Method(v1.BeatmapSetStatusPOST, db, common.PrivilegeBeatmap))
// Admin: user managing
gv1.POST("/users/manage/set_allowed", Method(v1.UserManageSetAllowedPOST, db, common.PrivilegeManageUser))