// // Copyright (C) 2025 veypi // 2025-03-04 16:08:06 // Distributed under terms of the MIT license. // package vbase import ( "github.com/veypi/vbase/api" "github.com/veypi/vigo" "github.com/veypi/vigo/contrib/cors" ) var Router = vigo.NewRouter() func init() { // 挂载 API 路由 Router.Extend("/api", api.Router) // CORS 支持 Router.SubRouter("/**").Use(cors.AllowAny) }