ETRI_SMARTFARM_POC/containers/devicemanagera/router/route.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
}