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