1
0
Fork 0
mirror of https://github.com/zedeus/nitter.git synced 2025-01-11 22:05:51 +00:00

Redirect /settings/personalization

Fixes 
This commit is contained in:
Zed 2019-10-08 20:49:31 +02:00
parent e6f1e55c15
commit 4a64bca24c

View file

@ -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()