diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-19 14:14:11 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-19 14:14:11 +0300 |
| commit | 9fade13368c732401030d392ef2332279716243e (patch) | |
| tree | 17427c8ec058ee8c32d0244230031fb4f6f50767 /backend/controllers/mapController.go | |
| parent | doc: swagger init for login and user routes (#34) (diff) | |
| download | lphub-9fade13368c732401030d392ef2332279716243e.tar.gz lphub-9fade13368c732401030d392ef2332279716243e.tar.bz2 lphub-9fade13368c732401030d392ef2332279716243e.zip | |
doc: complete rest of swagger implementation, change rankings response (#34)
Diffstat (limited to 'backend/controllers/mapController.go')
| -rw-r--r-- | backend/controllers/mapController.go | 9 |
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] | ||
| 12 | func FetchMap(c *gin.Context) { | 21 | func FetchMap(c *gin.Context) { |
| 13 | id := c.Param("id") | 22 | id := c.Param("id") |
| 14 | // Get map data | 23 | // Get map data |