diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-09-12 00:25:15 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-09-12 00:25:15 +0300 |
| commit | df6f6cb5ff8957be8f01d58d60857da2c094a3d9 (patch) | |
| tree | 5ec5a8a95633d7fa6cce62654a9bc6fc6204f788 /backend/api | |
| parent | refactor: fix module ver (diff) | |
| download | lphub-df6f6cb5ff8957be8f01d58d60857da2c094a3d9.tar.gz lphub-df6f6cb5ff8957be8f01d58d60857da2c094a3d9.tar.bz2 lphub-df6f6cb5ff8957be8f01d58d60857da2c094a3d9.zip | |
refactor: unofficial rankings implementation
Diffstat (limited to 'backend/api')
| -rw-r--r-- | backend/api/routes.go | 6 |
1 files changed, 4 insertions, 2 deletions
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 ( | |||
| 25 | mapRecordIDPath string = "/maps/:mapid/record/:recordid" | 25 | mapRecordIDPath string = "/maps/:mapid/record/:recordid" |
| 26 | mapDiscussionsPath string = "/maps/:mapid/discussions" | 26 | mapDiscussionsPath string = "/maps/:mapid/discussions" |
| 27 | mapDiscussionIDPath string = "/maps/:mapid/discussions/:discussionid" | 27 | mapDiscussionIDPath string = "/maps/:mapid/discussions/:discussionid" |
| 28 | rankingsPath string = "/rankings" | 28 | rankingsLPHUBPath string = "/rankings/lphub" |
| 29 | rankingsSteamPath string = "/rankings/steam" | ||
| 29 | searchPath string = "/search" | 30 | searchPath string = "/search" |
| 30 | gamesPath string = "/games" | 31 | gamesPath string = "/games" |
| 31 | chaptersPath string = "/games/:gameid" | 32 | chaptersPath string = "/games/:gameid" |
| @@ -73,7 +74,8 @@ func InitRoutes(router *gin.Engine) { | |||
| 73 | v1.PUT(mapDiscussionIDPath, CheckAuth, handlers.EditMapDiscussion) | 74 | v1.PUT(mapDiscussionIDPath, CheckAuth, handlers.EditMapDiscussion) |
| 74 | v1.DELETE(mapDiscussionIDPath, CheckAuth, handlers.DeleteMapDiscussion) | 75 | v1.DELETE(mapDiscussionIDPath, CheckAuth, handlers.DeleteMapDiscussion) |
| 75 | // Rankings, search | 76 | // Rankings, search |
| 76 | v1.GET(rankingsPath, handlers.Rankings) | 77 | v1.GET(rankingsLPHUBPath, handlers.RankingsLPHUB) |
| 78 | v1.GET(rankingsSteamPath, handlers.RankingsSteam) | ||
| 77 | v1.GET(searchPath, handlers.SearchWithQuery) | 79 | v1.GET(searchPath, handlers.SearchWithQuery) |
| 78 | // Games, chapters, maps | 80 | // Games, chapters, maps |
| 79 | v1.GET(gamesPath, handlers.FetchGames) | 81 | v1.GET(gamesPath, handlers.FetchGames) |