reject supported.
This commit is contained in:
@@ -41,6 +41,12 @@
|
||||
{:status 200
|
||||
:body (pr-str (invoices/get-pending))
|
||||
:headers {"Content-Type" "application/edn"}})
|
||||
(POST "/api/invoices/reject" []
|
||||
(invoices/reject)
|
||||
(println (invoices/get-pending))
|
||||
{:status 200
|
||||
:body (pr-str (invoices/get-pending))
|
||||
:headers {"Content-Type" "application/edn"}})
|
||||
(POST "/pdf-upload"
|
||||
{{ files "file"} :params :as params}
|
||||
(let [{:keys [filename tempfile]} files]
|
||||
@@ -56,4 +62,4 @@
|
||||
(route/not-found "Not Found"))
|
||||
|
||||
(def app
|
||||
(wrap-edn-params (mp/wrap-multipart-params (wrap-reload app-routes))))
|
||||
(wrap-edn-params (mp/wrap-multipart-params (wrap-reload #'app-routes))))
|
||||
|
||||
Reference in New Issue
Block a user