Added "WithMaxBytes" middleware

This commit is contained in:
Robin Dittmar
2026-07-20 20:12:45 +02:00
parent 10a34387ef
commit caf79e0dff
3 changed files with 14 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ func NewMux(cfg Config) http.Handler {
mux.HandleFunc("POST /lists", listHandler.CreateList)
var httpHandler http.Handler = mux
httpHandler = middleware.WithMaxBytes(1024 * 64)(httpHandler)
httpHandler = middleware.WithTelemetry(httpHandler)
return httpHandler