diff --git a/server/app/robots.txt b/server/app/robots.txt index 4f9540ba3..7d329b1db 100644 --- a/server/app/robots.txt +++ b/server/app/robots.txt @@ -1 +1 @@ -User-agent: * \ No newline at end of file +User-agent: * diff --git a/server/main.go b/server/main.go index ee618016d..9fd47cd2b 100644 --- a/server/main.go +++ b/server/main.go @@ -137,6 +137,7 @@ func main() { // create handler for static resources assets := rice.MustFindBox("app").HTTPBox() assetserve := http.FileServer(rice.MustFindBox("app").HTTPBox()) + http.Handle("/robots.txt", assetserve) http.Handle("/static/", http.StripPrefix("/static", assetserve)) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write(assets.MustBytes("index.html"))