diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-13 01:28:48 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-13 01:28:48 +0300 |
| commit | 3e10a3542f70f23313fc6a43c41aaca518e3d344 (patch) | |
| tree | 2bf813d90aa62336335141c1902b5eb7ec915550 /main.go | |
| parent | Merge pull request #32 from Nidboj132/main (diff) | |
| download | lphub-3e10a3542f70f23313fc6a43c41aaca518e3d344.tar.gz lphub-3e10a3542f70f23313fc6a43c41aaca518e3d344.tar.bz2 lphub-3e10a3542f70f23313fc6a43c41aaca518e3d344.zip | |
doc: swagger init for login and user routes (#34)
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) |