mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 06:35:36 +00:00
parent
8ddb913912
commit
d52769009b
|
@ -3,7 +3,7 @@ from net import Port
|
|||
|
||||
import jester
|
||||
|
||||
import types, config, prefs
|
||||
import types, config, prefs, formatters
|
||||
import views/[general, about]
|
||||
import routes/[
|
||||
preferences, timeline, status, media, search, rss, list, unsupported]
|
||||
|
@ -38,6 +38,11 @@ routes:
|
|||
get "/help":
|
||||
redirect("/about")
|
||||
|
||||
get "/i/redirect":
|
||||
let url = decodeUrl(@"url")
|
||||
if url.len == 0: halt Http404
|
||||
redirect(replaceUrl(url, cookiePrefs()))
|
||||
|
||||
error Http404:
|
||||
resp showError("Page not found", cfg.title)
|
||||
|
||||
|
|
Loading…
Reference in a new issue