modified: main.go

This commit is contained in:
Acid
2026-05-26 15:59:06 -04:00
parent fe3b33a58d
commit a3ec2fada7
+1 -7
View File
@@ -68,13 +68,7 @@ func handleRoot(w http.ResponseWriter, r *http.Request) {
}
func serveRobots(w http.ResponseWriter, r *http.Request) {
robots, err := os.ReadFile("templates/robots.txt")
if err != nil {
fmt.Fprintf(w, "sucks to suck")
return
}
fmt.Fprint(w, string(robots))
http.ServeFile(w, r, ("templates/robots.txt"))
}
func callApi(ip string) (ipResponse, error) {