diff --git a/cmd/qrbill-api/api.go b/cmd/qrbill-api/api.go index 9814e01..be634c1 100644 --- a/cmd/qrbill-api/api.go +++ b/cmd/qrbill-api/api.go @@ -154,6 +154,12 @@ func logic() error { } }) + mux.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, `User-agent: * +Disallow: / +`) + }) + mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { http.Error(w, "not found", http.StatusNotFound)