Skip to content

Commit

Permalink
refactor: does not wrap into response entity automatically in route.
Browse files Browse the repository at this point in the history
  • Loading branch information
ispiroglu committed Sep 25, 2024
1 parent acd4d9d commit 47de00e
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 = response.Success(res)
resp = res
}

if st, ok := any(res).(response.Stature); ok {
Expand Down

0 comments on commit 47de00e

Please sign in to comment.