jokes-bapak2/api/app/v1/app.go

19 lines
278 B
Go
Raw Normal View History

2021-07-09 12:13:19 +00:00
package v1
import (
"github.com/aldy505/jokes-bapak2-api/api/app/v1/routes"
"github.com/gofiber/fiber/v2"
)
func New() *fiber.App {
app := fiber.New(fiber.Config{
DisableKeepalive: true,
CaseSensitive: true,
})
routes.Health(app)
routes.Joke(app)
return app
}