nitter/src/routes/unsupported.nim

21 lines
515 B
Nim
Raw Normal View History

2019-09-23 14:12:20 +00:00
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.title)
get "/intent/?@i?":
resp renderMain(renderFeature(), request, cfg.title)
get "/login/?@i?":
resp renderMain(renderFeature(), request, cfg.title)
get "/i/@i?/?@j?":
cond @"i" != "status"
resp renderMain(renderFeature(), request, cfg.title)