🐛 Fix json encode and decode issue
All checks were successful
release-nightly / build-docker (push) Successful in 1m14s
All checks were successful
release-nightly / build-docker (push) Successful in 1m14s
This commit is contained in:
parent
0ffd582d80
commit
90ac125886
@ -1,12 +1,14 @@
|
|||||||
package transformers
|
package transformers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
jsoniter "github.com/json-iterator/go"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Definitions
|
// Definitions
|
||||||
|
|
||||||
|
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||||
|
|
||||||
type RequestTransformer struct {
|
type RequestTransformer struct {
|
||||||
ModifyRequest func(options any, ctx *fiber.Ctx) error
|
ModifyRequest func(options any, ctx *fiber.Ctx) error
|
||||||
ModifyResponse func(options any, ctx *fiber.Ctx) error
|
ModifyResponse func(options any, ctx *fiber.Ctx) error
|
||||||
|
Loading…
Reference in New Issue
Block a user