diff options
-rw-r--r-- | http.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/http.go b/http.go index 70e9eee..ece4fde 100644 --- a/http.go +++ b/http.go @@ -54,10 +54,6 @@ func getHandler(w http.ResponseWriter, r *http.Request) { // TODO: Handle caching // - dump all if not present // - if old, fetch from celestrack - //content, err := ioutil.ReadFile("categories.txt") - //if err != nil { - // log.Println("Could note read categories.txt") - //} // open the file containing the data for the individual station categoryPath := fmt.Sprintf("data/%s.txt", vars["station"]) @@ -79,12 +75,6 @@ func getHandler(w http.ResponseWriter, r *http.Request) { RawTLE := strings.Join(lines[j:j+3], "\n") - /* - RawTLE := `ISS (ZARYA) - 1 25544U 98067A 19229.39083552 .00000228 00000-0 11917-4 0 9993 - 2 25544 51.6447 57.6210 0007373 294.0868 138.8050 15.50381554184754` - */ - // handle the response according to the query parameter "format" // if ?format=json is given, return if r.URL.Query().Get("format") == "json" { |