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

Method handleImageDownload

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

Source from the content-addressed store, hash-verified

8)
9
10func (c *Core) handleImageDownload(ctx *gin.Context) {
11 token, _ := c.parseToken(getToken(ctx))
12 c.downloadImageFile(ctx, token)
13}
14
15func (c *Core) handleAudioDownload(ctx *gin.Context) {
16 token, _ := c.parseToken(getToken(ctx))

Callers 1

TestImageFileFailedFunction · 0.80

Calls 3

parseTokenMethod · 0.95
downloadImageFileMethod · 0.95
getTokenFunction · 0.85

Tested by 1

TestImageFileFailedFunction · 0.64