2014-06-13 06:06:27 +02:00
|
|
|
package main
|
|
|
|
|
2014-06-14 19:27:18 +02:00
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
"net/http"
|
|
|
|
)
|
2014-06-13 06:06:27 +02:00
|
|
|
|
|
|
|
func main() {
|
2014-06-14 19:27:18 +02:00
|
|
|
r := mux.NewRouter()
|
|
|
|
GlobalHandler(r.PathPrefix("/global").Subrouter())
|
|
|
|
http.Handle("/", r)
|
|
|
|
http.ListenAndServe(":5000", nil)
|
2014-06-13 06:06:27 +02:00
|
|
|
}
|