add
This commit is contained in:
@@ -73,7 +73,7 @@ func routes() http.Handler {
|
|||||||
writeJSON(w, http.StatusOK, true, "ok", map[string]string{"version": "user-service v0.1.0"})
|
writeJSON(w, http.StatusOK, true, "ok", map[string]string{"version": "user-service v0.1.0"})
|
||||||
})
|
})
|
||||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintf(w, "hello from user-service")
|
writeJSON(w, http.StatusOK, true, "ok", map[string]string{"service": "user"})
|
||||||
})
|
})
|
||||||
mux.HandleFunc("/register", registerHandler)
|
mux.HandleFunc("/register", registerHandler)
|
||||||
mux.HandleFunc("/login", loginHandler)
|
mux.HandleFunc("/login", loginHandler)
|
||||||
|
|||||||
Reference in New Issue
Block a user