Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
0ddf6e4c63 | |||
a248c84e2e |
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user