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")