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