mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: get file source route / Fix: cache initialize at wrong time
This commit is contained in:
2
main.go
2
main.go
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/HFO4/cloudreve/models"
|
||||
"github.com/HFO4/cloudreve/pkg/auth"
|
||||
"github.com/HFO4/cloudreve/pkg/authn"
|
||||
"github.com/HFO4/cloudreve/pkg/cache"
|
||||
"github.com/HFO4/cloudreve/pkg/conf"
|
||||
"github.com/HFO4/cloudreve/routers"
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -11,6 +12,7 @@ import (
|
||||
|
||||
func init() {
|
||||
conf.Init("conf/conf.ini")
|
||||
cache.Init()
|
||||
model.Init()
|
||||
|
||||
// Debug 关闭时,切换为生产模式
|
||||
|
||||
Reference in New Issue
Block a user