mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
21 lines
408 B
Go
21 lines
408 B
Go
package config
|
|
|
|
import (
|
|
"gitlab.com/mbugroup/lti-api.git/internal/utils"
|
|
|
|
"github.com/bytedance/sonic"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func FiberConfig() fiber.Config {
|
|
return fiber.Config{
|
|
Prefork: IsProd,
|
|
CaseSensitive: true,
|
|
ServerHeader: "Fiber",
|
|
AppName: "Fiber API",
|
|
ErrorHandler: utils.ErrorHandler,
|
|
JSONEncoder: sonic.Marshal,
|
|
JSONDecoder: sonic.Unmarshal,
|
|
}
|
|
}
|