reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
paulbutcher 2021-01-16T23:38:43.005600Z

I’m in the process of moving an application from Compojure to Reitit. The application that I’m converting has been using ring.middleware.defaults/wrap-defaults and can see that some of its functionality is covered by Reitit middleware (e.g. reitit.ring.middleware.parameters/parameters-middleware instead of ring.middleware.params/wrap-params ). But significant other functionality (e.g. XSS protection, anti-forgery, SSL redirect, …) isn’t. What’s best practice here? Is there a “nice” way to use wrap-defaults and Reitit together?