// NewHandler creates a http router. It passes HTTP requests to the function.
NewHandler creates a http router. It passes HTTP requests to the function.
// NewHandler creates a http router . It passes HTTP requests to the function .
func NewRouter() http.Handler {
	r := stdrouter.NewRouter()
	r.HandleFunc("/", http.MethodGet, handler.GetRoot)
	r.HandleFunc("/api", http.MethodGet, handler.GetAPIRoot)
	r.HandleFunc("/api/users", http.MethodGet, handler.GetUsers)
	r.HandleFunc("/api/products", http.MethodGet, handler.GetProducts)
	r.HandleFunc("/api/products", http.MethodPost, handler.CreateProducts)
	r.HandleFunc("/api/users/create", http.MethodPost, handler.CreateUser)
	r.HandleFunc("/api/users/:user_id", http.MethodGet, handler.GetUser)
	r.HandleFunc("/api/users/:user_id", http.MethodPatch, handler.UpdateUser)
	r.HandleFunc("/api/users/:user_id", http.MethodDelete, handler.DeleteUser)
	r.HandleFunc("/api/users/:user_id/posts", http.MethodGet, handler.GetPosts)
	r.HandleFunc("/api/users/:user_id/profile", http.MethodGet, handler.GetUser)
	r.HandleFunc("/api/users/:user_id/posts/:post_id", http.MethodGet, handler.GetPost)
	r.HandleFunc("/api/users/:user_id/posts/:post_id/aaa", http.MethodGet, handler.GetPost)
	r.HandleFunc("/api/users/:user_id/posts/:post_id/aaa/bbb", http.MethodGet, handler.GetPost)
	r.HandleNotFound(handler.NotFoundHandler)
	r.HandleMethodNotAllowed(handler.MethodNotAllowedHandler)
	return r
}
func NewRouter ( ) http . Handler { r := stdrouter . NewRouter ( ) r . HandleFunc ( " " , http . MethodGet , handler . GetRoot ) r . HandleFunc ( " " , http . MethodGet , handler . GetAPIRoot ) r . HandleFunc ( " " , http . MethodGet , handler . GetUsers ) r . HandleFunc ( " " , http . MethodGet , handler . GetProducts ) r . HandleFunc ( " " , http . MethodPost , handler . CreateProducts ) r . HandleFunc ( " " , http . MethodPost , handler . CreateUser ) r . HandleFunc ( " " , http . MethodGet , handler . GetUser ) r . HandleFunc ( " " , http . MethodPatch , handler . UpdateUser ) r . HandleFunc ( " " , http . MethodDelete , handler . DeleteUser ) r . HandleFunc ( " " , http . MethodGet , handler . GetPosts ) r . HandleFunc ( " " , http . MethodGet , handler . GetUser ) r . HandleFunc ( " " , http . MethodGet , handler . GetPost ) r . HandleFunc ( " " , http . MethodGet , handler . GetPost ) r . HandleFunc ( " " , http . MethodGet , handler . GetPost ) r . HandleNotFound ( handler . NotFoundHandler ) r . HandleMethodNotAllowed ( handler . MethodNotAllowedHandler ) return r }
NewHandler creates a http router.
NewHandler creates a http router .
/*
		...
	*/