🐛 Fix json encode and decode issue
All checks were successful
release-nightly / build-docker (push) Successful in 1m14s

This commit is contained in:
LittleSheep 2023-12-16 23:08:07 +08:00
parent 0ffd582d80
commit 90ac125886

View File

@ -1,12 +1,14 @@
package transformers
import (
"encoding/json"
"github.com/gofiber/fiber/v2"
jsoniter "github.com/json-iterator/go"
)
// Definitions
var json = jsoniter.ConfigCompatibleWithStandardLibrary
type RequestTransformer struct {
ModifyRequest func(options any, ctx *fiber.Ctx) error
ModifyResponse func(options any, ctx *fiber.Ctx) error