We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1e8c5 commit 2d93e43Copy full SHA for 2d93e43
api/backup/router.go
@@ -1,12 +1,13 @@
1
package backup
2
3
import (
4
+ "github.com/0xJacky/Nginx-UI/internal/middleware"
5
"github.com/gin-gonic/gin"
6
)
7
8
func InitRouter(r *gin.RouterGroup) {
9
r.GET("/backup", CreateBackup)
- r.POST("/restore", RestoreBackup)
10
+ r.POST("/restore", middleware.EncryptedForm(), RestoreBackup)
11
}
12
13
func InitAutoBackupRouter(r *gin.RouterGroup) {
0 commit comments