// // Copyright (C) 2025 veypi // 2025-03-04 16:08:06 // Distributed under terms of the MIT license. // package OneAuth import ( "embed" "github.com/veypi/OneAuth/api" vyesui "github.com/veypi/vyes-ui" "github.com/vyes-ai/vigo" "github.com/vyes-ai/vigo/contrib/cors" "github.com/vyes-ai/vigo/contrib/vyes" ) var Router = vigo.NewRouter() //go:embed ui/* var uifs embed.FS func init() { Router.Extend("v", vyesui.Router) Router.Extend("api", api.Router) Router.SubRouter("/*path").Use(cors.AllowAny) vyes.WrapUI(Router, uifs) }