nitter/src/routes/unsupported.nim

24 lines
563 B
Nim
Raw Normal View History

2021-12-27 01:37:38 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
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:
template feature {.dirty.} =
2020-06-09 14:45:21 +00:00
resp renderMain(renderFeature(), request, cfg, themePrefs())
2019-09-23 14:12:20 +00:00
get "/about/feature": feature()
get "/login/?@i?": feature()
get "/@name/lists/?": feature()
2019-09-23 14:12:20 +00:00
get "/intent/?@i?":
cond @"i" notin ["user"]
feature()
2019-09-23 14:12:20 +00:00
get "/i/@i?/?@j?":
cond @"i" notin ["status", "lists" , "user"]
feature()