feat: load storages while starting

This commit is contained in:
Noah Hsu
2022-08-11 21:32:33 +08:00
parent 74f1154e5e
commit 0fdfd1f2c2
7 changed files with 65 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import (
func Init(r *gin.Engine) {
common.SecretKey = []byte(conf.Conf.JwtSecret)
Cors(r)
r.Use(middlewares.StoragesLoaded)
WebDav(r)
r.GET("/d/*path", middlewares.Down, handles.Down)