From bb54eaf6623acdcfb2e9056eb803260dff2150a5 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 16 Jul 2025 15:28:11 +0530 Subject: enhance requests queries for posts; integrate backend with search --- processors/request.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'processors') 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() { -- cgit v1.2.3