aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9105e84..204803a 100644
--- a/main.go
+++ b/main.go
@@ -600,6 +600,9 @@ func main() {
http.HandleFunc("/upload", upload)
http.HandleFunc("/download", download)
http.HandleFunc("/imgs", imgs)
+ http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {
+ http.ServeFile(w, r, "./robots.txt")
+ })
http.HandleFunc("/admin", admin)
http.HandleFunc("/admin/users", adminUsers)
log.Printf("Serving http://localhost:%d\n", *p)