You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/init.go

29 lines
563 B
Go

7 months ago
//
// Copyright (C) 2025 veypi <i@veypi.com>
// 2025-03-04 16:08:06
// Distributed under terms of the MIT license.
//
6 months ago
package OneAuth
7 months ago
import (
"embed"
6 months ago
"github.com/veypi/OneAuth/api"
7 months ago
"github.com/veypi/vyes-ui"
3 months ago
"github.com/vyes-ai/vigo"
"github.com/vyes-ai/vigo/contrib/cors"
"github.com/vyes-ai/vigo/contrib/vyes"
7 months ago
)
var Router = vigo.NewRouter()
7 months ago
//go:embed ui/*
var uifs embed.FS
var (
_ = Router.Extend("v", vyesui.Router)
_ = Router.Extend("api", api.Router)
3 months ago
_ = Router.SubRouter("/*path").UseBefore(cors.AllowAny)
7 months ago
_ = vyes.WrapUI(Router, uifs)
7 months ago
)