aboutsummaryrefslogtreecommitdiff
path: root/backend/api
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-10-09 19:02:39 +0300
committerGitHub <noreply@github.com>2023-10-09 19:02:39 +0300
commit1f8611153233516c9e18fc12b3fac9bae904804b (patch)
tree950d4c1546f6d71b12093a0543a9dfa00770688f /backend/api
parentfeat: add is_disabled to chapters maps (#112) (diff)
downloadlphub-1f8611153233516c9e18fc12b3fac9bae904804b.tar.gz
lphub-1f8611153233516c9e18fc12b3fac9bae904804b.tar.bz2
lphub-1f8611153233516c9e18fc12b3fac9bae904804b.zip
feat: new endpoint for getting every map for a game (#114)
Former-commit-id: 708f57ef08abea7f2b0549e8dad75096fd315558
Diffstat (limited to 'backend/api')
-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)