(g *gin.RouterGroup)
| 232 | } |
| 233 | |
| 234 | func _sharing(g *gin.RouterGroup) { |
| 235 | g.Any("/list", handles.ListSharings) |
| 236 | g.GET("/get", handles.GetSharing) |
| 237 | g.POST("/create", handles.CreateSharing) |
| 238 | g.POST("/update", handles.UpdateSharing) |
| 239 | g.POST("/delete", handles.DeleteSharing) |
| 240 | g.POST("/enable", handles.SetEnableSharing(false)) |
| 241 | g.POST("/disable", handles.SetEnableSharing(true)) |
| 242 | } |
| 243 | |
| 244 | func Cors(r *gin.Engine) { |
| 245 | config := cors.DefaultConfig() |
no test coverage detected