Initial commit (code only without large binaries)
This commit is contained in:
21
EdgeUser/internal/web/actions/default/docs/init.go
Normal file
21
EdgeUser/internal/web/actions/default/docs/init.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package docs
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeUser/internal/web/helpers"
|
||||
"github.com/iwind/TeaGo"
|
||||
)
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Prefix("/docs").
|
||||
Helper(helpers.NewUserMustAuth("")).
|
||||
Data("teaMenu", "docs").
|
||||
Get("", new(IndexAction)).
|
||||
Get("/", new(IndexAction)).
|
||||
Get("/:page(.+)", new(IndexAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user