Compare commits

..

No commits in common. "main" and "v0.2" have entirely different histories.
main ... v0.2

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) { func apirequest_info_get(w http.ResponseWriter, req *http.Request) {
var fileid = req.PathValue("request") var fileid = req.PathValue("request")
file, err := os.ReadFile("./api/" + fileid + ".json") file, err := os.ReadFile("./api" + fileid + ".json")
fmt.Printf("requesting %s\n", "./api/"+fileid+".json") fmt.Printf("requesting %s\n", "./api"+fileid+".json")
if err != nil { if err != nil {
w.WriteHeader(403) w.WriteHeader(403)
fmt.Printf("Requesting file %s does not exist\n", "./api"+fileid+".json") fmt.Printf("Requesting file %s does not exist\n", "./api"+fileid+".json")

BIN
craapi

Binary file not shown.