Fork me on GitHub
#reitit
<
2018-07-01
>
valerauko14:07:19

is there a simple way to mark parameters as optional?

yogthos14:07:42

are multipart-params supported?

👍 4
yogthos14:07:46

if I had the following with compojure-api, what would be a reitit equivalent

(POST "/media" []
                                  :multipart-params [file :- TempFileUpload]
                                  :middleware [wrap-multipart-params]
                                  :current-user user
                                  :summary "handles media upload"
                                  :return attachments/AttachmentResult
                                  (attachments/upload-media! {:user-id (:user-id user)} file))