Cloudreve/main.go

19 lines
272 B
Go
Raw Normal View History

2019-11-04 20:30:12 +08:00
package main
2019-11-05 12:31:22 +08:00
import (
"github.com/HFO4/cloudreve/bootstrap"
2019-11-16 16:11:37 +08:00
"github.com/HFO4/cloudreve/pkg/conf"
"github.com/HFO4/cloudreve/routers"
2019-11-05 12:31:22 +08:00
)
2019-11-04 20:30:12 +08:00
2019-11-07 15:56:05 +08:00
func init() {
bootstrap.Init("conf/conf.ini")
2019-11-07 15:56:05 +08:00
}
2019-11-04 20:30:12 +08:00
func main() {
2019-11-05 12:31:22 +08:00
api := routers.InitRouter()
api.Run(conf.SystemConfig.Listen)
2019-11-05 12:31:22 +08:00
2019-11-04 20:30:12 +08:00
}