mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
parent
e6f1e55c15
commit
4a64bca24c
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ proc createPrefRouter*(cfg: Config) =
|
||||||
let html = renderPreferences(cookiePrefs(), refPath())
|
let html = renderPreferences(cookiePrefs(), refPath())
|
||||||
resp renderMain(html, request, cfg.title, "Preferences")
|
resp renderMain(html, request, cfg.title, "Preferences")
|
||||||
|
|
||||||
|
get "/settings/@i?":
|
||||||
|
redirect("/settings")
|
||||||
|
|
||||||
post "/saveprefs":
|
post "/saveprefs":
|
||||||
var prefs = cookiePrefs()
|
var prefs = cookiePrefs()
|
||||||
genUpdatePrefs()
|
genUpdatePrefs()
|
||||||
|
|
Loading…
Reference in a new issue