dev
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user