From 10799c3de1a9dda5b14ae35dbb4efa3ab82cca2d Mon Sep 17 00:00:00 2001 From: SouthFox Date: Fri, 25 Aug 2023 21:52:32 +0800 Subject: [PATCH] [fix] fix Stream closed --- src/main/backend/core.clj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/backend/core.clj b/src/main/backend/core.clj index c3399f6..645634c 100644 --- a/src/main/backend/core.clj +++ b/src/main/backend/core.clj @@ -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