unsupported.nim 474 B

12345678910111213141516171819
  1. import jester
  2. import router_utils
  3. import ../types
  4. import ../views/[general, about]
  5. proc createUnsupportedRouter*(cfg: Config) =
  6. router unsupported:
  7. template feature {.dirty.} =
  8. resp renderMain(renderFeature(), request, cfg, themePrefs())
  9. get "/about/feature": feature()
  10. get "/intent/?@i?": feature()
  11. get "/login/?@i?": feature()
  12. get "/@name/lists/?": feature()
  13. get "/i/@i?/?@j?":
  14. cond @"i" notin ["status", "lists"]
  15. feature()