From c0cb56d3783906606f5002bcf571a5994d07de54 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 30 Oct 2022 01:00:05 +0300 Subject: implement swagger --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 9bae176..77a05d5 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,18 @@ import ( "github.com/joho/godotenv" "github.com/pektezol/leastportals/backend/database" "github.com/pektezol/leastportals/backend/routes" + _ "github.com/pektezol/leastportals/docs" ) +// @title Least Portals Database API +// @version 1.0 +// @description Backend API endpoints for Least Portals Database. + +// @license.name GNU General Public License, Version 2 +// @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html + +// @host localhost:4000 +// @BasePath func main() { if os.Getenv("ENV") == "PROD" { gin.SetMode(gin.ReleaseMode) -- cgit v1.2.3