MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / _sharing

Function _sharing

server/router.go:234–242  ·  view source on GitHub ↗
(g *gin.RouterGroup)

Source from the content-addressed store, hash-verified

232}
233
234func _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
244func Cors(r *gin.Engine) {
245 config := cors.DefaultConfig()

Callers 1

InitFunction · 0.85

Calls 1

SetEnableSharingFunction · 0.92

Tested by

no test coverage detected