metosin/reitit

[Feature] Add handlers registry

開放

#695 建立於 2024年8月26日

 (2 則留言) (1 個反應) (0 位負責人)Clojure (261 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (1,569 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南