2021-07-09 12:13:19 +00:00
|
|
|
package v1
|
|
|
|
|
|
|
|
import (
|
2021-07-14 18:17:01 +00:00
|
|
|
"jokes-bapak2-api/app/v1/routes"
|
|
|
|
|
2021-07-09 12:13:19 +00:00
|
|
|
"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
|
|
|
|
}
|