mirror of
https://github.com/zedeus/nitter.git
synced 2025-02-02 04:01:06 +00:00
de62eedea5
Add a `hostname` field under Server in your conf file, see the updated nitter.conf in the repo for an example. The compile-time option (-d:hostname) is no longer used.
21 lines
491 B
Nim
21 lines
491 B
Nim
import jester
|
|
|
|
import router_utils
|
|
import ../types
|
|
import ../views/[general, about]
|
|
|
|
proc createUnsupportedRouter*(cfg: Config) =
|
|
router unsupported:
|
|
get "/about/feature":
|
|
resp renderMain(renderFeature(), request, cfg)
|
|
|
|
get "/intent/?@i?":
|
|
resp renderMain(renderFeature(), request, cfg)
|
|
|
|
get "/login/?@i?":
|
|
resp renderMain(renderFeature(), request, cfg)
|
|
|
|
get "/i/@i?/?@j?":
|
|
cond @"i" != "status"
|
|
resp renderMain(renderFeature(), request, cfg)
|