Fork me on GitHub
#reitit
<
2019-07-22
>
nbdam15:07:05

how can i access :request-method during middleware :compile?

ikitommi16:07:20

@nbdam the compile happens at router creation time, so no request info is available. You can access the declared endpoint methods thou. e.g. (:get data) to get route data for the :get endpoint.