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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/api/routes.go b/backend/api/routes.go
index 9e703f6..2581a75 100644
--- a/backend/api/routes.go
+++ b/backend/api/routes.go
@@ -28,6 +28,7 @@ const (
28 searchPath string = "/search" 28 searchPath string = "/search"
29 gamesPath string = "/games" 29 gamesPath string = "/games"
30 chaptersPath string = "/games/:gameid" 30 chaptersPath string = "/games/:gameid"
31 gameMapsPath string = "/games/:gameid/maps"
31 chapterMapsPath string = "/chapters/:chapterid" 32 chapterMapsPath string = "/chapters/:chapterid"
32 scoreLogsPath string = "/logs/score" 33 scoreLogsPath string = "/logs/score"
33 modLogsPath string = "/logs/mod" 34 modLogsPath string = "/logs/mod"
@@ -76,6 +77,7 @@ func InitRoutes(router *gin.Engine) {
76 v1.GET(gamesPath, handlers.FetchGames) 77 v1.GET(gamesPath, handlers.FetchGames)
77 v1.GET(chaptersPath, handlers.FetchChapters) 78 v1.GET(chaptersPath, handlers.FetchChapters)
78 v1.GET(chapterMapsPath, handlers.FetchChapterMaps) 79 v1.GET(chapterMapsPath, handlers.FetchChapterMaps)
80 v1.GET(gameMapsPath, handlers.FetchMaps)
79 // Logs 81 // Logs
80 v1.GET(scoreLogsPath, handlers.ScoreLogs) 82 v1.GET(scoreLogsPath, handlers.ScoreLogs)
81 v1.GET(modLogsPath, CheckAuth, handlers.ModLogs) 83 v1.GET(modLogsPath, CheckAuth, handlers.ModLogs)