1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-27 16:28:27 +02:00

replaced the default binder with rest.MultiBinder

This commit is contained in:
Gani Georgiev
2024-01-20 15:03:45 +02:00
parent d9b219d64f
commit 9855397a22
6 changed files with 126 additions and 46 deletions

View File

@@ -28,6 +28,7 @@ const trailedAdminPath = "/_/"
func InitApi(app core.App) (*echo.Echo, error) {
e := echo.New()
e.Debug = false
e.Binder = &rest.MultiBinder{}
e.JSONSerializer = &rest.Serializer{
FieldsParam: fieldsQueryParam,
}