aboutsummaryrefslogtreecommitdiff
path: root/backend/api/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/routes.go')
-rw-r--r--backend/api/routes.go6
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)