This commit is contained in:
2025-12-27 02:50:16 +08:00
parent 9cf62f793b
commit e9ef58e6fa
138 changed files with 2288 additions and 174165 deletions

View File

@@ -14,7 +14,7 @@ import (
)
var (
ServiceKey = "sites"
ServiceKey = "site"
)
func main() {
@@ -26,7 +26,6 @@ func main() {
// 创建并加载自定义渲染器
middleware.Mode(app)
tmpl.New(app)
app.Use(middleware.Cors())
app.Use(gin.Recovery())
@@ -34,7 +33,10 @@ func main() {
app.HEAD("/", infra.Health)
// register routers
routers.Registers_Public(app)
routers.RegistersPublic(app)
routers.RegistersAll(app)
tmpl.New(app)
// start
err := app.Run(fmt.Sprintf(":%s", config.Spec.Port))