Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuwe-n committed Aug 15, 2022
1 parent 1b42c8f commit ed37ee4
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions go/webserver.go → webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ func getRank(writer http.ResponseWriter, request *http.Request, params httproute
fmt.Println(err.Error())
return
}
ranked := GetRanked(GetJson("../data/courses.json"), data.Course)
ranked := GetRanked(GetJson("./data/courses.json"), data.Course)
writer.Header().Set("Content-Type", "application/json")
_ = json.NewEncoder(writer).Encode(ranked)
}

func getCourses(writer http.ResponseWriter, request *http.Request, params httprouter.Params) {
ranked := GetJson("../data/courses.json")
ranked := GetJson("./data/courses.json")
writer.Header().Set("Content-Type", "application/json")
writer.WriteHeader(http.StatusCreated)
_ = json.NewEncoder(writer).Encode(ranked)
Expand Down

0 comments on commit ed37ee4

Please sign in to comment.