From df6f6cb5ff8957be8f01d58d60857da2c094a3d9 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 12 Sep 2024 00:25:15 +0300 Subject: refactor: unofficial rankings implementation --- backend/api/routes.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/api/routes.go') diff --git a/backend/api/routes.go b/backend/api/routes.go index 050a3bd..81f1ec6 100644 --- a/backend/api/routes.go +++ b/backend/api/routes.go @@ -25,7 +25,8 @@ const ( mapRecordIDPath string = "/maps/:mapid/record/:recordid" mapDiscussionsPath string = "/maps/:mapid/discussions" mapDiscussionIDPath string = "/maps/:mapid/discussions/:discussionid" - rankingsPath string = "/rankings" + rankingsLPHUBPath string = "/rankings/lphub" + rankingsSteamPath string = "/rankings/steam" searchPath string = "/search" gamesPath string = "/games" chaptersPath string = "/games/:gameid" @@ -73,7 +74,8 @@ func InitRoutes(router *gin.Engine) { v1.PUT(mapDiscussionIDPath, CheckAuth, handlers.EditMapDiscussion) v1.DELETE(mapDiscussionIDPath, CheckAuth, handlers.DeleteMapDiscussion) // Rankings, search - v1.GET(rankingsPath, handlers.Rankings) + v1.GET(rankingsLPHUBPath, handlers.RankingsLPHUB) + v1.GET(rankingsSteamPath, handlers.RankingsSteam) v1.GET(searchPath, handlers.SearchWithQuery) // Games, chapters, maps v1.GET(gamesPath, handlers.FetchGames) -- cgit v1.2.3