From a248c84e2ee644e75d2b7be8fe0db8084aad08d0 Mon Sep 17 00:00:00 2001 From: ALEX Date: Sun, 12 May 2024 05:37:12 +0000 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 2e49682..a6a457c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -156,8 +156,8 @@ var port string func apirequest_info_get(w http.ResponseWriter, req *http.Request) { var fileid = req.PathValue("request") - file, err := os.ReadFile("./api" + fileid + ".json") - fmt.Printf("requesting %s\n", "./api"+fileid+".json") + file, err := os.ReadFile("./api/" + fileid + ".json") + fmt.Printf("requesting %s\n", "./api/"+fileid+".json") if err != nil { w.WriteHeader(403) fmt.Printf("Requesting file %s does not exist\n", "./api"+fileid+".json")