metosin/reitit

[Feature] Add handlers registry

Open

#695 opened on Aug 26, 2024

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Clojure (1,569 stars) (261 forks)batch import
enhancementhelp wanted

Description

Just like middleware registry, but with a few open questions:

  • Should it be an opt of ring.core/router?
  • How should resolution be performed? Just postwalk and look for :handler?
    • Does that risk mangling input data?
    • Same for metadata (meta merge)
    • Can be done after merge but before compilation
  • Belong in core or ring?

Contributor guide