16 lines
258 B
Go
16 lines
258 B
Go
|
package router
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func NewRouter() http.Handler {
|
||
|
mux := http.NewServeMux()
|
||
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||
|
w.WriteHeader(http.StatusOK)
|
||
|
w.Write([]byte("I am devicemanagerA"))
|
||
|
})
|
||
|
|
||
|
return mux
|
||
|
}
|