nitter/src/routes/unsupported.nim

20 lines
460 B
Nim
Raw Normal View History

2019-09-23 16:12:20 +02:00
import jester
import router_utils
import ../types
import ../views/[general, about]
proc createUnsupportedRouter*(cfg: Config) =
router unsupported:
template feature {.dirty.} =
resp renderMain(renderFeature(), request, cfg)
2019-09-23 16:12:20 +02:00
get "/about/feature": feature()
get "/intent/?@i?": feature()
get "/login/?@i?": feature()
get "/@name/lists/?": feature()
2019-09-23 16:12:20 +02:00
get "/i/@i?/?@j?":
2020-06-01 02:22:56 +02:00
cond @"i" notin ["status", "lists"]
feature()