parent
8ddb913912
commit
d52769009b
|
@ -3,7 +3,7 @@ from net import Port
|
||||||
|
|
||||||
import jester
|
import jester
|
||||||
|
|
||||||
import types, config, prefs
|
import types, config, prefs, formatters
|
||||||
import views/[general, about]
|
import views/[general, about]
|
||||||
import routes/[
|
import routes/[
|
||||||
preferences, timeline, status, media, search, rss, list, unsupported]
|
preferences, timeline, status, media, search, rss, list, unsupported]
|
||||||
|
@ -38,6 +38,11 @@ routes:
|
||||||
get "/help":
|
get "/help":
|
||||||
redirect("/about")
|
redirect("/about")
|
||||||
|
|
||||||
|
get "/i/redirect":
|
||||||
|
let url = decodeUrl(@"url")
|
||||||
|
if url.len == 0: halt Http404
|
||||||
|
redirect(replaceUrl(url, cookiePrefs()))
|
||||||
|
|
||||||
error Http404:
|
error Http404:
|
||||||
resp showError("Page not found", cfg.title)
|
resp showError("Page not found", cfg.title)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue