add swagger

This commit is contained in:
Fran Jurmanović
2024-07-11 18:49:14 +02:00
parent df70999d13
commit 8307a60913
9 changed files with 249 additions and 10 deletions

View File

@@ -13,9 +13,6 @@ func Start(r *fiber.App) *fiber.App {
return c.SendString("pong")
})
port := os.Getenv("PORT")
if port == "" {
port = "4000"
}
err := r.Listen(":" + port)
if err != nil {
msg := fmt.Sprintf("Running on %s:%s", common.GetIP(), port)