17 lines
229 B
Go
17 lines
229 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"gitserver.in/patialtech/mux"
|
|
)
|
|
|
|
func router() *mux.Router {
|
|
r := mux.NewRouter()
|
|
|
|
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("hello there"))
|
|
})
|
|
return r
|
|
}
|