2019-11-04 20:30:12 +08:00
|
|
|
package main
|
|
|
|
|
|
2019-11-05 12:31:22 +08:00
|
|
|
import (
|
2019-11-07 15:56:05 +08:00
|
|
|
"Cloudreve/models"
|
2019-11-08 18:29:12 +08:00
|
|
|
"Cloudreve/pkg/conf"
|
2019-11-05 12:31:22 +08:00
|
|
|
"Cloudreve/routers"
|
|
|
|
|
)
|
2019-11-04 20:30:12 +08:00
|
|
|
|
2019-11-07 15:56:05 +08:00
|
|
|
func init() {
|
2019-11-08 18:29:12 +08:00
|
|
|
conf.Init()
|
2019-11-07 15:56:05 +08:00
|
|
|
model.Init()
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-04 20:30:12 +08:00
|
|
|
func main() {
|
2019-11-05 12:31:22 +08:00
|
|
|
|
|
|
|
|
api := routers.InitRouter()
|
|
|
|
|
|
|
|
|
|
api.Run(":5000")
|
|
|
|
|
|
2019-11-04 20:30:12 +08:00
|
|
|
}
|