From 31e12dbcbd47645d053023391544aed4ef8d2d40 Mon Sep 17 00:00:00 2001 From: "Juan B. Rodriguez" Date: Fri, 15 Sep 2017 11:42:40 -0500 Subject: [PATCH] Fix parameter binding issue Ref #39 --- server/src/lib/options.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/lib/options.go b/server/src/lib/options.go index 5343870..369d626 100644 --- a/server/src/lib/options.go +++ b/server/src/lib/options.go @@ -2,10 +2,10 @@ package lib // Options - type Options struct { - Query string `form:"query"` - Offset uint64 `form:"offset"` - Limit uint64 `form:"limit"` - SortBy string `form:"sortBy"` - SortOrder string `form:"sortOrder"` - FilterBy string `form:"filterBy"` + Query string `form:"query" query:"query"` + Offset uint64 `form:"offset" query:"offset"` + Limit uint64 `form:"limit" query:"limit"` + SortBy string `form:"sortBy" query:"sortBy"` + SortOrder string `form:"sortOrder" query:"sortOrder"` + FilterBy string `form:"filterBy" query:"filterBy"` }