@ -44,6 +44,8 @@
artists-by-album))})))
(def resource-handler (ring/create-resource-handler {:allow-symlinks? true}))
(def file-handler (ring/create-file-handler {:allow-symlinks? true
:root "resources/public"}))
(defn limerick-generation-post-handler
[db cache]
@ -32,7 +32,7 @@
:coercion reitit.coercion.spec/coercion
:parameters {:path {:artist-id int?}}
:get {:handler (handlers/artist-get-handler db)}}]]
["/assets/*" handlers/resource-handler]
["/assets/*" handlers/file-handler]
["/wgu"
{:name ::wgu
:get {:handler (handlers/wgu db cache)}