mirror of
https://github.com/zedeus/nitter.git
synced 2024-09-26 13:20:03 +00:00
23 lines
563 B
Nim
23 lines
563 B
Nim
# SPDX-License-Identifier: AGPL-3.0-only
|
|
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, themePrefs())
|
|
|
|
get "/about/feature": feature()
|
|
get "/login/?@i?": feature()
|
|
get "/@name/lists/?": feature()
|
|
|
|
get "/intent/?@i?":
|
|
cond @"i" notin ["user"]
|
|
feature()
|
|
|
|
get "/i/@i?/?@j?":
|
|
cond @"i" notin ["status", "lists" , "user"]
|
|
feature()
|