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