15 lines
270 B
Go
15 lines
270 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
_ "github.com/deluan/gosonic/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()
|
||
|
}
|