1234567891011121314151617 |
- package main
- import (
- _ "eta/eta_forum_task/routers"
- "eta/eta_forum_task/services"
- beego "github.com/beego/beego/v2/server/web"
- )
- func main() {
- if beego.BConfig.RunMode == "dev" {
- beego.BConfig.WebConfig.DirectoryIndex = true
- beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
- }
- // services.EtaForumChartUpdate()
- go services.Task()
- beego.Run()
- }
|