Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

fix: problem while getting storage type (#2097)

Ns2Kracy6bbb0802aa8b
diff --git a/route/v1/recover.go b/route/v1/recover.go
index 70acc7f..8bc9c35 100644
--- a/route/v1/recover.go
+++ b/route/v1/recover.go
@@ -17,7 +17,7 @@ import (
)
func GetRecoverStorage(ctx echo.Context) error {
- t := ctx.Param("type")
+ t := strings.TrimSuffix(ctx.Param("type"), "/")
currentTime := time.Now().UTC()
currentDate := time.Now().UTC().Format("2006-01-02")
notify := make(map[string]interface{})