diff options
| author | Bobby <[email protected]> | 2025-07-16 15:28:11 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-07-16 15:28:11 +0530 |
| commit | bb54eaf6623acdcfb2e9056eb803260dff2150a5 (patch) | |
| tree | 3a7fb956911f8e40c4e86ca9fde48b4ebef1a217 /processors | |
| parent | f13506cfba2da90764620dab2c624ac74767de62 (diff) | |
| download | imageboard-bb54eaf6623acdcfb2e9056eb803260dff2150a5.tar.xz imageboard-bb54eaf6623acdcfb2e9056eb803260dff2150a5.zip | |
enhance requests queries for posts; integrate backend with search
Diffstat (limited to 'processors')
| -rw-r--r-- | processors/request.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/processors/request.go b/processors/request.go index 173b29d..a3ea20a 100644 --- a/processors/request.go +++ b/processors/request.go @@ -8,9 +8,10 @@ import ( func RequestContextProcessor(ctx *fiber.Ctx) error { queryParams := []config.QueryParam{} - for k, v := range ctx.Queries() { - queryParams = append(queryParams, config.QueryParam{Key: k, Value: v}) - } + queryArgs := ctx.Request().URI().QueryArgs() + queryArgs.VisitAll(func(key, value []byte) { + queryParams = append(queryParams, config.QueryParam{Key: string(key), Value: string(value)}) + }) routeParams := []config.QueryParam{} for k, v := range ctx.AllParams() { |
