Compare commits

..

No commits in common. "0ddf6e4c636f457c7c5cef6c35def00196e34823" and "6373f156954dccd4c9ee3eb138d990d9a5d5a9a8" have entirely different histories.

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.