mirror of https://github.com/veypi/OneAuth.git
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.
28 lines
452 B
Go
28 lines
452 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.
|
||
|
|
//
|
||
|
|
|
||
|
|
package oa
|
||
|
|
|
||
|
|
import (
|
||
|
|
"embed"
|
||
|
|
"oa/api"
|
||
|
|
|
||
|
|
"github.com/veypi/OneBD/rest"
|
||
|
7 months ago
|
"github.com/veypi/OneBD/rest/middlewares/vyes"
|
||
|
7 months ago
|
"github.com/veypi/vyes-ui"
|
||
|
|
)
|
||
|
|
|
||
|
|
var Router = rest.NewRouter()
|
||
|
|
|
||
|
|
//go:embed ui/*
|
||
|
|
var uifs embed.FS
|
||
|
|
|
||
|
|
var (
|
||
|
|
_ = Router.Extend("v", vyesui.Router)
|
||
|
|
_ = Router.Extend("api", api.Router)
|
||
|
7 months ago
|
_ = vyes.WrapUI(Router, uifs)
|
||
|
7 months ago
|
)
|