mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-12 04:06:37 +08:00
fix: protect shared rules across delivery and recovery (#560)
This commit is contained in:
@@ -52,7 +52,7 @@ func Register(r *gin.Engine, opts *Options) {
|
||||
router.StaticFS("/docs", http.FS(swaggerDoc))
|
||||
|
||||
config := router.Group("/config")
|
||||
config.Use(mwBasicAuth(opts.Auther))
|
||||
config.Use(mwBasicAuth(opts.Auther), configTransaction())
|
||||
|
||||
config.GET("", getConfig)
|
||||
config.POST("", saveConfig)
|
||||
|
||||
Reference in New Issue
Block a user