reitit

simongray 2024-11-01T12:23:48.080029Z

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?

simongray 2024-11-01T14:06:14.651619Z

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.

✅ 1
simongray 2024-11-05T08:47:35.596889Z

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