modified: main.go
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user