feat: sign of file

This commit is contained in:
Noah Hsu
2022-06-28 15:12:40 +08:00
parent 5dbf5db4ff
commit d89ec89d51
8 changed files with 122 additions and 10 deletions

View File

@ -4,6 +4,7 @@ import (
"github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/db"
"github.com/alist-org/alist/v3/internal/model"
"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/gin-gonic/gin"
@ -17,6 +18,7 @@ func ResetToken(c *gin.Context) {
common.ErrorResp(c, err, 500)
return
}
sign.Instance()
common.SuccessResp(c, token)
}