rano/server/router.go

17 lines
229 B
Go
Raw Normal View History

2024-10-31 20:31:22 +05:30
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
}