You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
244 B

  1. package main
  2. import (
  3. "fmt"
  4. "net/http"
  5. )
  6. type Routes []Route
  7. var routes = Routes{
  8. Route{
  9. "Index",
  10. "GET",
  11. "/",
  12. Index,
  13. },
  14. }
  15. func Index(w http.ResponseWriter, r *http.Request) {
  16. //ipFilter(w, r)
  17. fmt.Fprintln(w, runningPeer.ID)
  18. }