In Pedestal I can do this trick to update the routes of my web service whenever I evaluate them in the REPL: https://github.com/kuhumcst/DanNet/blob/master/src/main/dk/cst/dannet/web/service.clj#L67 i.e. I don’t have to restart the Pedestal web service to make this work. Is there something similar I can do for Reitit + Pedestal?
Another question… how come adding the kv
:compile coercion/compile-request-coercers
to the opts map of the router call just breaks all of my routes?
None of them work if add this. It doesn’t matter whether they take any params or not.Seems like that isn’t how to do it with Pedestal/interceptors. I based my code on this example and got it working: https://github.com/metosin/reitit/blob/master/examples/pedestal-swagger/src/example/server.clj