Fork me on GitHub
#reitit
<
2020-01-21
>
ikitommi16:01:30

@michal you could wrap both in reitit.ring/routes which does linear routing over them. But both need to be run with 3-arity async-ring server, e.g. Jetty with {:async true}.

ikitommi16:01:10

I guess you could write a adapter that accepts both 1 & 3 arity calls to the router, but sadly, Clojure doesn't support function arity inspection at runtime, so you need some hacky glue code to properly support both sync-ring & async-http at the same time.

ikitommi16:01:48

Anyone tested the #malli coercion from 0.4.*?