Skip to content

Commit

Permalink
fix(response): Add response entity wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetcanozcan committed Sep 6, 2024
1 parent 2a0c7b6 commit bd4b573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/server/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bd4b573

Please sign in to comment.