liuxiaolong
2020-06-16 d80e076c2d45647bbbf82c27c4ad8924283dc708
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main
 
import (
    _ "car-service/routers"
    "github.com/astaxie/beego"
)
 
func main() {
    if beego.BConfig.RunMode == "dev" {
        beego.BConfig.WebConfig.DirectoryIndex = true
        beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
    }
    beego.Run()
}