Fork me on GitHub
#reitit
<
2022-03-04
>
johnnyillinois00:03:44

Can anyone point me to a link/doc of customizing route compilation using customized route arguments? E.g.

(defn handlers
  []
  ["/resources"
   {:swagger {:tags ["resources"]}}

   ["/pizza"
    {:name ::pizza
     :post {:no-doc false
            :skip-authentication? true <- customized route argument
           :summary "a wonderful endpoint"
           :parameters {:body any?}
           :responses {200 {:body any?}}
           :handler pizza-handler}}]])
I understand I can access the customized route argument at runtime as part of the request processing. My interested is how I might access this argument can be accessed during route compilation