Compare commits

..

No commits in common. "638f589837a889e473cbc7f0d323dc4b2f016ddd" and "db49da5fd969e731bcd4d2c95ec5f9e8782b0f8b" have entirely different histories.

View file

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