diff --git a/api.go b/api.go index 1e2c7c7..fc652d7 100644 --- a/api.go +++ b/api.go @@ -37,6 +37,9 @@ func main() { }) r.HandleFunc("/p/{sessionId}", h).Methods("GET") r.PathPrefix("/assets").Handler(http.FileServer(http.Dir("./www"))) + r.HandleFunc("/robots.txt", http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { + http.ServeFile(rw, r, "www/robots.txt") + })) r.Handle("/sessions/{sessionId}/ws/", server) diff --git a/www/robots.txt b/www/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/www/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /