MCPcopy
hub / github.com/filebrowser/filebrowser / toShareResponses

Function toShareResponses

http/share.go:44–50  ·  view source on GitHub ↗
(links []*share.Link)

Source from the content-addressed store, hash-verified

42}
43
44func toShareResponses(links []*share.Link) []*shareResponse {
45 res := make([]*shareResponse, 0, len(links))
46 for _, l := range links {
47 res = append(res, toShareResponse(l))
48 }
49 return res
50}
51
52func withPermShare(fn handleFunc) handleFunc {
53 return withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {

Callers 1

share.goFile · 0.85

Calls 1

toShareResponseFunction · 0.85

Tested by

no test coverage detected