Add other playmode to api

This commit is contained in:
qewc 2019-02-03 12:44:15 +00:00 committed by GitHub
parent 50ffa4e066
commit a0c1da8c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,12 @@ func Start(conf common.Conf, dbO *sqlx.DB) *fhr.Router {
r.Method("/api/v1/scores", v1.ScoresGET) r.Method("/api/v1/scores", v1.ScoresGET)
r.Method("/api/v1/beatmaps/rank_requests/status", v1.BeatmapRankRequestsStatusGET) r.Method("/api/v1/beatmaps/rank_requests/status", v1.BeatmapRankRequestsStatusGET)
// Other leaderboard memes
r.Method("/api/v1/users/scores/best/relax", v1.UserScoresBestRelaxGET)
r.Method("/api/v1/users/scores/recent/relax", v1.UserScoresRecentRelaxGET)
r.Method("/api/v1/users/scores/best/ap", v1.UserScoresBestAPGET)
r.Method("/api/v1/users/scores/recent/ap", v1.UserScoresRecentAPGET)
// ReadConfidential privilege required // ReadConfidential privilege required
r.Method("/api/v1/friends", v1.FriendsGET, common.PrivilegeReadConfidential) r.Method("/api/v1/friends", v1.FriendsGET, common.PrivilegeReadConfidential)
r.Method("/api/v1/friends/with", v1.FriendsWithGET, common.PrivilegeReadConfidential) r.Method("/api/v1/friends/with", v1.FriendsWithGET, common.PrivilegeReadConfidential)