func Route(doc *swagger.API) {
	doc.Tags = append(doc.Tags, swagger.Tag{
		Name:        tag,
		Description: "主页",
	})
	doc.AddEndpoint(
		endpoint.New(
			http.MethodGet, "/",
			endpoint.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
				ctr.Found(w, r, "/web")
				//ctr.OK(w, "Hello Arceus!")
			})),
			endpoint.ResponseSuccess(),
			endpoint.Tags(tag),
		),
		endpoint.New(
			http.MethodGet, "/version",
			endpoint.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
				ctr.OK(w, version.Get())
			})),
			endpoint.ResponseSuccess(endpoint.Schema(version.Version{})),
			endpoint.Tags(tag),
		),
	)
}
// Route handle home routing related
Route handle home routing related
// Route handle home routing related
func Route(doc *swagger.API) {
	doc.Tags = append(doc.Tags, swagger.Tag{
		Name:        tag,
		Description: "主页",
	})
	doc.AddEndpoint(
		endpoint.New(
			http.MethodGet, "/",
			endpoint.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
				ctr.Found(w, r, "/web")
			})),
			endpoint.ResponseSuccess(),
			endpoint.Tags(tag),
		),
		endpoint.New(
			http.MethodGet, "/version",
			endpoint.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
				ctr.OK(w, version.Get())
			})),
			endpoint.ResponseSuccess(endpoint.Schema(version.Version{})),
			endpoint.Tags(tag),
		),
	)
}
func Route ( doc * swagger . API ) { doc . Tags = append ( doc . Tags , swagger . Tag { Name : tag , Description : " } ) doc . AddEndpoint ( endpoint . New ( http . MethodGet , " " , endpoint . Handler ( http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { ctr . Found ( w , r , " " ) } ) ) , endpoint . ResponseSuccess ( ) , endpoint . Tags ( tag ) , ) , endpoint . New ( http . MethodGet , " " , endpoint . Handler ( http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { ctr . OK ( w , version . Get ( ) ) } ) ) , endpoint . ResponseSuccess ( endpoint . Schema ( version . Version { } ) ) , endpoint . Tags ( tag ) , ) , ) }
Route handle home routing related
Route handle home routing related
//ctr.OK(w, "Hello Arceus!")