package main

import (
	_ "eta/eta_data_init/routers"
	"eta/eta_data_init/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.Task()
	beego.Run()
}
