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