diff --git a/main.go b/main.go index 7da3704..5e1f89a 100644 --- a/main.go +++ b/main.go @@ -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)