more debug messages added

pull/1/head
Nilo Roberto C Paim 2023-08-13 08:31:20 -03:00
parent 3329a56e38
commit 951e1fa68a
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ func main() {
routes.Setup(app)
app.Use(func(c *fiber.Ctx) error {
return c.Status(fiber.StatusNotFound).SendString(c.BaseURL()) // => 404 "Not Found"
})
log.Println("Server started in port " + os.Getenv("API_PORT"))
if erro := app.Listen(":" + os.Getenv("API_PORT")); err != nil {
panic(erro)