aboutsummaryrefslogtreecommitdiff
path: root/processors
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-07-16 15:28:11 +0530
committerBobby <[email protected]>2025-07-16 15:28:11 +0530
commitbb54eaf6623acdcfb2e9056eb803260dff2150a5 (patch)
tree3a7fb956911f8e40c4e86ca9fde48b4ebef1a217 /processors
parentf13506cfba2da90764620dab2c624ac74767de62 (diff)
downloadimageboard-bb54eaf6623acdcfb2e9056eb803260dff2150a5.tar.xz
imageboard-bb54eaf6623acdcfb2e9056eb803260dff2150a5.zip
enhance requests queries for posts; integrate backend with search
Diffstat (limited to 'processors')
-rw-r--r--processors/request.go7
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() {