From 611a75d9974b57ac02f324385423141cea3b0e64 Mon Sep 17 00:00:00 2001 From: Konstantin Dudkov Date: Tue, 27 Aug 2024 23:16:43 +0300 Subject: [PATCH] marti_api BodyLimit --- cmd/goatak_server/marti_api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/goatak_server/marti_api.go b/cmd/goatak_server/marti_api.go index 7767fbd..8e8dc99 100644 --- a/cmd/goatak_server/marti_api.go +++ b/cmd/goatak_server/marti_api.go @@ -13,6 +13,7 @@ import ( "github.com/gofiber/fiber/v2" "github.com/google/uuid" + "github.com/kdudkov/goatak/cmd/goatak_server/mp" "github.com/kdudkov/goatak/internal/pm" "github.com/kdudkov/goatak/pkg/cot" @@ -37,7 +38,7 @@ type MartiAPI struct { func NewMartiApi(app *App, addr string) *MartiAPI { api := &MartiAPI{ - f: fiber.New(fiber.Config{EnablePrintRoutes: false, DisableStartupMessage: true}), + f: fiber.New(fiber.Config{EnablePrintRoutes: false, DisableStartupMessage: true, BodyLimit: 64 * 1024 * 1024}), addr: addr, }