remapped routes

This commit is contained in:
Bryce Covert
2018-04-06 08:08:50 -07:00
parent 68964e2e2c
commit 66638bd6a6
2 changed files with 106 additions and 98 deletions

View File

@@ -10,7 +10,7 @@
token (re-frame/subscribe [::subs/token])]
(with-meta
(fn []
[:form.dz {:action "/pdf-upload"}
[:form.dz {:action "/api/invoices/upload"}
[:div.tile.notification
[:div.has-text-centered {:style {:padding "80px 0px" :width "100%"}}
[:span
@@ -24,7 +24,7 @@
(re-frame/dispatch [::events/received-invoices :pending (edn/read-string files)]))))
:paramName "file"
:headers {"Authorization" (str "Token " @token)}
:url (str "/pdf-upload"
:url (str "/api/invoices/upload"
(when-let [company-name (-> @company :id)]
(str "?company=" company-name)))
:previewsContainer "#dz-hidden"