unsupported.nim 581 B

12345678910111213141516171819202122232425
  1. # SPDX-License-Identifier: AGPL-3.0-only
  2. import jester
  3. import router_utils
  4. import ../types
  5. import ../views/[general, feature]
  6. export feature
  7. proc createUnsupportedRouter*(cfg: Config) =
  8. router unsupported:
  9. template feature {.dirty.} =
  10. resp renderMain(renderFeature(), request, cfg, themePrefs())
  11. get "/about/feature": feature()
  12. get "/login/?@i?": feature()
  13. get "/@name/lists/?": feature()
  14. get "/intent/?@i?":
  15. cond @"i" notin ["user"]
  16. feature()
  17. get "/i/@i?/?@j?":
  18. cond @"i" notin ["status", "lists" , "user"]
  19. feature()