From a0c1da8c706f7475a7345b26ad3392b308aa6b14 Mon Sep 17 00:00:00 2001 From: qewc <42550681+qewc@users.noreply.github.com> Date: Sun, 3 Feb 2019 12:44:15 +0000 Subject: [PATCH] Add other playmode to api --- app/start.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/start.go b/app/start.go index d9258c3..869151d 100644 --- a/app/start.go +++ b/app/start.go @@ -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/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 r.Method("/api/v1/friends", v1.FriendsGET, common.PrivilegeReadConfidential) r.Method("/api/v1/friends/with", v1.FriendsWithGET, common.PrivilegeReadConfidential)