aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers/mapController.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/controllers/mapController.go')
-rw-r--r--backend/controllers/mapController.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/controllers/mapController.go b/backend/controllers/mapController.go
index 4c57971..1560441 100644
--- a/backend/controllers/mapController.go
+++ b/backend/controllers/mapController.go
@@ -9,6 +9,15 @@ import (
9 "github.com/pektezol/leastportals/backend/models" 9 "github.com/pektezol/leastportals/backend/models"
10) 10)
11 11
12// GET Map
13//
14// @Summary Get map page with specified id.
15// @Accept json
16// @Produce json
17// @Param id path int true "Map ID"
18// @Success 200 {object} models.Response{data=models.Map}
19// @Failure 400 {object} models.Response
20// @Router /maps/{id} [get]
12func FetchMap(c *gin.Context) { 21func FetchMap(c *gin.Context) {
13 id := c.Param("id") 22 id := c.Param("id")
14 // Get map data 23 // Get map data