aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/main.go b/main.go
index 77a05d5..d0e55a6 100644
--- a/main.go
+++ b/main.go
@@ -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
25func main() { 25func main() {
26 if os.Getenv("ENV") == "PROD" { 26 if os.Getenv("ENV") == "PROD" {
27 gin.SetMode(gin.ReleaseMode) 27 gin.SetMode(gin.ReleaseMode)