authentication #2

Merged
hex merged 4 commits from authentication into dev 2025-05-06 07:11:27 +00:00
Showing only changes of commit 59a49698a1 - Show all commits

View file

@ -21,4 +21,10 @@ 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)
})
}