reitit
reitit copied to clipboard
[Feature] Add handlers registry
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?
Quick comments:
- base into
reitit.middlewarewhich defines concept of:handler,ringuses it -
:handlerpaths are known in the:compilehook, different for middleware & ring, this is the way - maybe
IntoHandlerprotocol?
PR most welcome on this.