Load prefs from cookie on search page

This commit is contained in:
Zed 2019-09-19 06:15:21 +02:00
parent 7d655c3dd5
commit af23cf0a7f
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import strutils, sequtils, uri
import jester import jester
import router_utils import router_utils
import ".."/[query, types, utils, api, agents] import ".."/[query, types, utils, api, agents, prefs]
import ../views/[general, search] import ../views/[general, search]
export search export search
@ -14,7 +14,7 @@ proc createSearchRouter*(cfg: Config) =
if @"text".len > 200: if @"text".len > 200:
resp Http400, showError("Search input too long.", cfg.title) resp Http400, showError("Search input too long.", cfg.title)
let prefs = Prefs() let prefs = cookiePrefs()
let query = initQuery(params(request)) let query = initQuery(params(request))
case query.kind case query.kind