MCPcopy Create free account
hub / github.com/chanify/chanify / handleFileDownload

Method handleFileDownload

core/file.go:20–23  ·  view source on GitHub ↗
(ctx *gin.Context)

Source from the content-addressed store, hash-verified

18}
19
20func (c *Core) handleFileDownload(ctx *gin.Context) {
21 token, _ := c.parseToken(getToken(ctx))
22 c.downloadFile(ctx, token)
23}
24
25func (c *Core) downloadImageFile(ctx *gin.Context, token *model.Token) {
26 if token == nil {

Callers 1

TestFileFailedFunction · 0.80

Calls 3

parseTokenMethod · 0.95
downloadFileMethod · 0.95
getTokenFunction · 0.85

Tested by 1

TestFileFailedFunction · 0.64