mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-25 11:10:29 +08:00
初步实现安装界面
This commit is contained in:
17
internal/web/actions/default/setup/init.go
Normal file
17
internal/web/actions/default/setup/init.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package setup
|
||||
|
||||
import "github.com/iwind/TeaGo"
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Helper(new(Helper)).
|
||||
Prefix("/setup").
|
||||
Get("", new(IndexAction)).
|
||||
Post("/validateApi", new(ValidateApiAction)).
|
||||
Post("/validateDb", new(ValidateDbAction)).
|
||||
Post("/validateAdmin", new(ValidateAdminAction)).
|
||||
Post("/install", new(InstallAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user