michi.NewRouter() // UseʹΑΔϛυϧΣΞͷઃఆ r.Use(middleware.Logger) // RouteʹΑΔωετ r.Route("/articles", func(r *michi.Router) { // WithʹΑΔϛυϧΣΞͷઃఆ r.With(paginate).HandleFunc("GET /", listArticles) r.HandleFunc("POST /", createArticle) r.HandleFunc("GET /search", searchArticles) r.Route("/{articleID}", func(r *michi.Router) { r.Use(ArticleCtx) r.HandleFunc("GET /", getArticle) r.HandleFunc("PUT /", updateArticle) }) }) DIJ3PVUFSΛ NJDIJ3PVUFSʹ ஔ͖͑Δ͜ͱͰ͑·͢ ͯ͢ͷ"1*ʹޓ͕ ͋ΔΘ͚Ͱ͋Γ·ͤΜ