diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -13,15 +13,15 @@ import ( | |||
| 13 | _ "github.com/pektezol/leastportals/docs" | 13 | _ "github.com/pektezol/leastportals/docs" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| 16 | // @title Least Portals Database API | 16 | // @title Least Portals Database API |
| 17 | // @version 1.0 | 17 | // @version 1.0 |
| 18 | // @description Backend API endpoints for Least Portals Database. | 18 | // @description Backend API endpoints for Least Portals Database. |
| 19 | 19 | ||
| 20 | // @license.name GNU General Public License, Version 2 | 20 | // @license.name GNU General Public License, Version 2 |
| 21 | // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | 21 | // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
| 22 | 22 | ||
| 23 | // @host localhost:4000 | 23 | // @host localhost:4000/api |
| 24 | // @BasePath | 24 | // @BasePath /v1 |
| 25 | func main() { | 25 | func main() { |
| 26 | if os.Getenv("ENV") == "PROD" { | 26 | if os.Getenv("ENV") == "PROD" { |
| 27 | gin.SetMode(gin.ReleaseMode) | 27 | gin.SetMode(gin.ReleaseMode) |