summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-12-31 06:50:32 +0100
committerAki <please@ignore.pl>2023-12-31 06:50:32 +0100
commitad658306ce9a6fa7fbec6efb9da9c139de576b04 (patch)
tree1ddaf2807b4dffabec272eb3e75fd8212d47e6a4
parent1df1bad5196369acfc64033e545f84911255c76f (diff)
downloadrudone-ad658306ce9a6fa7fbec6efb9da9c139de576b04.zip
rudone-ad658306ce9a6fa7fbec6efb9da9c139de576b04.tar.gz
rudone-ad658306ce9a6fa7fbec6efb9da9c139de576b04.tar.bz2
Embedded robots.txt
-rw-r--r--main.go3
-rw-r--r--robots.txt2
2 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index 51ef34c..73de3e1 100644
--- a/main.go
+++ b/main.go
@@ -12,8 +12,7 @@ import (
"github.com/gorilla/mux"
)
-//go:embed *.js
-//go:embed *.in
+//go:embed *.js *.in robots.txt
var content embed.FS
func handleEntryOptions(w http.ResponseWriter, r *http.Request) {
diff --git a/robots.txt b/robots.txt
new file mode 100644
index 0000000..a4751e2
--- /dev/null
+++ b/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: *