Serve index.html by default

This commit is contained in:
heyarne 2020-05-11 08:44:03 +02:00
commit 2ba7486d91

View file

@ -26,8 +26,9 @@
(let [{:keys [snapshot predictions]} (-> req :params)] (let [{:keys [snapshot predictions]} (-> req :params)]
(upload! snapshot predictions) (upload! snapshot predictions)
{:status 201 {:status 201
:body (str "Thanks :)")}))}]] :body (str "Thanks :)")}))}]
["/*" (ring/create-resource-handler)]))) ["/*" (ring/create-resource-handler)]]
{:conflicts (constantly nil)})))
(defonce server (atom nil)) (defonce server (atom nil))