mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
19 lines
305 B
Go
19 lines
305 B
Go
|
|
package db
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
||
|
|
"github.com/iwind/TeaGo"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||
|
|
server.
|
||
|
|
Helper(new(helpers.UserMustAuth)).
|
||
|
|
Helper(new(Helper)).
|
||
|
|
Prefix("/db").
|
||
|
|
Get("", new(IndexAction)).
|
||
|
|
|
||
|
|
EndAll()
|
||
|
|
})
|
||
|
|
}
|