diff --git a/modules/server/route/route.go b/modules/server/route/route.go index 1710f89..4af1ac2 100644 --- a/modules/server/route/route.go +++ b/modules/server/route/route.go @@ -112,7 +112,7 @@ func build[Req, Res any](f HandlerFunc[Req, Res], defaultStatus ...int) fiber.Ha if rp, ok := any(res).(response.Responser); ok { resp = rp.ToResponse() } else { - resp = res + resp = response.Success(res) } if st, ok := any(res).(response.Stature); ok {