Compare commits

..

No commits in common. "59a49698a1dc6421d1a845286933dc2acf5a318a" and "0b20a0d027f9207740584cbb400e2af97c7a68cd" have entirely different histories.

View file

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