This commit is contained in:
Bryce Covert
2017-12-12 16:37:39 -08:00
parent 5b8d25bf8f
commit 0eae7c955c
2 changed files with 5 additions and 1 deletions

View File

@@ -56,6 +56,10 @@
{:status 200
:body (pr-str (invoices/get-pending (query-params "company")))
:headers {"Content-Type" "application/edn"}})
(wrap-json-response (GET "/api/export" {:keys [query-params]}
(println query-params)
(doto (invoices/get-unpaid (query-params "company"))
println)))
(POST "/pdf-upload"
{{ files "file"} :params :as params}
(let [{:keys [filename tempfile]} files

View File

@@ -1,7 +1,7 @@
(ns auto-ap.db)
(def default-db
{:company {:name "Campbell brewery"}
{:company {:name "Campbell Brewing Company"}
:companies [{:name "Campbell Brewing Company"
:matches ["campbell brewing company" "campbell brewery company" "campbell brewing"]}
{:name "Brown Chicken Brown Cow"