Commit 72217321 authored by Janos Guljas's avatar Janos Guljas

serve a simple code 200 response for api root

parent 28738478
...@@ -22,6 +22,10 @@ func (s *server) setupRouting() { ...@@ -22,6 +22,10 @@ func (s *server) setupRouting() {
jsonhttp.NotFound(w, nil) jsonhttp.NotFound(w, nil)
}) })
router.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Ethereum Swarm Bee")
})
router.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) { router.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "User-agent: *\nDisallow: /") fmt.Fprintln(w, "User-agent: *\nDisallow: /")
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment