feat: static file router

This commit is contained in:
Noah Hsu
2022-08-28 23:13:03 +08:00
parent e5480b99be
commit d267c43556
7 changed files with 103 additions and 11 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/alist-org/alist/v3/internal/sign"
"github.com/alist-org/alist/v3/pkg/utils/random"
"github.com/alist-org/alist/v3/server/common"
"github.com/alist-org/alist/v3/server/static"
"github.com/gin-gonic/gin"
)
@ -54,6 +55,7 @@ func SaveSettings(c *gin.Context) {
common.ErrorResp(c, err, 500)
} else {
common.SuccessResp(c)
static.UpdateIndex()
}
}