From 1f8611153233516c9e18fc12b3fac9bae904804b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:02:39 +0300 Subject: feat: new endpoint for getting every map for a game (#114) Former-commit-id: 708f57ef08abea7f2b0549e8dad75096fd315558 --- backend/api/routes.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/api') 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 ( searchPath string = "/search" gamesPath string = "/games" chaptersPath string = "/games/:gameid" + gameMapsPath string = "/games/:gameid/maps" chapterMapsPath string = "/chapters/:chapterid" scoreLogsPath string = "/logs/score" modLogsPath string = "/logs/mod" @@ -76,6 +77,7 @@ func InitRoutes(router *gin.Engine) { v1.GET(gamesPath, handlers.FetchGames) v1.GET(chaptersPath, handlers.FetchChapters) v1.GET(chapterMapsPath, handlers.FetchChapterMaps) + v1.GET(gameMapsPath, handlers.FetchMaps) // Logs v1.GET(scoreLogsPath, handlers.ScoreLogs) v1.GET(modLogsPath, CheckAuth, handlers.ModLogs) -- cgit v1.2.3