replaced the default binder with rest.MultiBinder

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

No files matched your search

+1
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,
}