more debug messages added
parent
3329a56e38
commit
951e1fa68a
4
main.go
4
main.go
|
|
@ -56,6 +56,10 @@ func main() {
|
||||||
|
|
||||||
routes.Setup(app)
|
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"))
|
log.Println("Server started in port " + os.Getenv("API_PORT"))
|
||||||
if erro := app.Listen(":" + os.Getenv("API_PORT")); err != nil {
|
if erro := app.Listen(":" + os.Getenv("API_PORT")); err != nil {
|
||||||
panic(erro)
|
panic(erro)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue