Files
nitter/src/routes/unsupported.nim
ngn 96dad1e3a1 remove about page
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-21 05:26:35 +03:00

25 lines
544 B
Nim

# SPDX-License-Identifier: AGPL-3.0-only
import jester
import router_utils
import ../types
import ../views/[general, feature]
export feature
proc createUnsupportedRouter*(cfg: Config) =
router unsupported:
template feature {.dirty.} =
resp renderMain(renderFeature(), request, cfg, themePrefs())
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()