[fix] fix Stream closed
This commit is contained in:
parent
ac66839ee2
commit
10799c3de1
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
(ns backend.core
|
||||
(:require [org.httpkit.server :as server]
|
||||
[reitit.ring :as ring]
|
||||
[ring.util.response :refer [resource-response content-type]]
|
||||
[backend.handlers :as handlers])
|
||||
(:gen-class))
|
||||
|
||||
|
@ -9,9 +8,7 @@
|
|||
(def app
|
||||
(ring/ring-handler
|
||||
(ring/router
|
||||
[["/" (constantly (content-type (resource-response
|
||||
"index.html" {:root "public"}) "text/html; charset=utf-8"))]
|
||||
["/api"
|
||||
[["/api"
|
||||
["/hp/:id" {:parameters {:path {:id int?}}
|
||||
:get {:handler handlers/fetch-hu-post}}]]])
|
||||
(ring/routes
|
||||
|
|
Loading…
Reference in a new issue