ETRI_SMARTFARM_POC/containers/devicemanagera/router/route.go

16 lines
258 B
Go
Raw Normal View History

2021-11-16 12:28:52 +00:00
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
}