Fixed bug when serving data from jar file

This commit is contained in:
Simon Brooke 2020-01-29 20:43:01 +00:00
parent 0e943b0e18
commit 559167bd5b
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
2 changed files with 18 additions and 2 deletions

View file

@ -56,6 +56,9 @@
[lein-codox "0.10.7"]
[lein-release "1.0.5"]]
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
:clean-targets ^{:protect false}
[:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
:figwheel
@ -141,4 +144,17 @@
}
:profiles/dev {}
:profiles/test {}})
:profiles/test {}}
;; `lein release` doesn't play nice with `git flow release`. Run `lein release` in the
;; `develop` branch, then reset the `master` branch to the release tag.
:release-tasks [["vcs" "assert-committed"]
["clean"]
["codox"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["uberjar"]
["deploy" "clojars"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]])

View file

@ -72,7 +72,7 @@
"Return JSON formatted data taken from the CSV file with the name `filename`
in the directory `resources/public/data`."
[filename]
(-> (str "public/data/" filename) io/resource io/file io/reader csv->json))
(-> (str "public/data/" filename) io/resource io/reader csv->json))
(defn get-data
"Return JSON formatted data from the source implied by this `request`."