parent
e6f1e55c15
commit
4a64bca24c
|
@ -17,6 +17,9 @@ proc createPrefRouter*(cfg: Config) =
|
|||
let html = renderPreferences(cookiePrefs(), refPath())
|
||||
resp renderMain(html, request, cfg.title, "Preferences")
|
||||
|
||||
get "/settings/@i?":
|
||||
redirect("/settings")
|
||||
|
||||
post "/saveprefs":
|
||||
var prefs = cookiePrefs()
|
||||
genUpdatePrefs()
|
||||
|
|
Loading…
Reference in New Issue