2019-11-04 20:30:12 +08:00
|
|
|
package main
|
|
|
|
|
2019-11-05 12:31:22 +08:00
|
|
|
import (
|
2020-02-22 12:18:49 +08:00
|
|
|
"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() {
|
2020-02-22 12:18:49 +08:00
|
|
|
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()
|
|
|
|
|
2019-12-23 13:27:18 +08:00
|
|
|
api.Run(conf.SystemConfig.Listen)
|
2019-11-05 12:31:22 +08:00
|
|
|
|
2019-11-04 20:30:12 +08:00
|
|
|
}
|