Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2d93e43

Browse files
committedJun 4, 2025··
fix: missing middleware for encrypted form in restore backup endpoint #1105
1 parent bd1e8c5 commit 2d93e43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎api/backup/router.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package backup
22

33
import (
4+
"github.com/0xJacky/Nginx-UI/internal/middleware"
45
"github.com/gin-gonic/gin"
56
)
67

78
func InitRouter(r *gin.RouterGroup) {
89
r.GET("/backup", CreateBackup)
9-
r.POST("/restore", RestoreBackup)
10+
r.POST("/restore", middleware.EncryptedForm(), RestoreBackup)
1011
}
1112

1213
func InitAutoBackupRouter(r *gin.RouterGroup) {

0 commit comments

Comments
 (0)
Please sign in to comment.