Compare commits

...

3 commits

Author SHA1 Message Date
grngxd
e92e85b32e Merge remote-tracking branch 'origin/dev' into file-serving 2025-05-05 15:22:31 +01:00
grngxd
b00e82e0e6 feat: file serving 2025-05-05 15:22:18 +01:00
db49da5fd9 Merge pull request 'uploading' (#1) from uploading into dev
Reviewed-on: #1
2025-05-05 13:59:12 +00:00
2 changed files with 7 additions and 0 deletions

BIN
imgs/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 KiB

View file

@ -21,4 +21,11 @@ func RegisterUploadRoutes(cfg *types.StereoConfig, api *gin.RouterGroup) {
return
}
})
api.GET("/:name", func(c *gin.Context) {
name := c.Param("name")
path := filepath.Join(cfg.ImagePath, name)
c.File(path)
})
}