Compare commits

...

2 Commits
v0.2 ... main

Author SHA1 Message Date
0ddf6e4c63 bug修复 2024-05-12 05:39:10 +00:00
a248c84e2e bug修复 2024-05-12 05:39:10 +00:00
2 changed files with 2 additions and 2 deletions

View File

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

BIN
craapi

Binary file not shown.