このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2021-12-27 10:37:38 +09:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
2019-09-23 23:12:20 +09:00
|
|
|
import jester
|
|
|
|
|
|
|
|
import router_utils
|
|
|
|
import ../types
|
2022-01-10 07:14:01 +09:00
|
|
|
import ../views/[general, feature]
|
|
|
|
|
|
|
|
export feature
|
2019-09-23 23:12:20 +09:00
|
|
|
|
|
|
|
proc createUnsupportedRouter*(cfg: Config) =
|
|
|
|
router unsupported:
|
2020-06-01 12:31:11 +09:00
|
|
|
template feature {.dirty.} =
|
2020-06-09 23:45:21 +09:00
|
|
|
resp renderMain(renderFeature(), request, cfg, themePrefs())
|
2019-09-23 23:12:20 +09:00
|
|
|
|
2020-06-01 12:31:11 +09:00
|
|
|
get "/about/feature": feature()
|
|
|
|
get "/login/?@i?": feature()
|
|
|
|
get "/@name/lists/?": feature()
|
2019-09-23 23:12:20 +09:00
|
|
|
|
2021-10-04 19:03:40 +09:00
|
|
|
get "/intent/?@i?":
|
|
|
|
cond @"i" notin ["user"]
|
|
|
|
feature()
|
|
|
|
|
2019-09-23 23:12:20 +09:00
|
|
|
get "/i/@i?/?@j?":
|
2021-10-04 19:03:40 +09:00
|
|
|
cond @"i" notin ["status", "lists" , "user"]
|
2020-06-01 12:31:11 +09:00
|
|
|
feature()
|