Compare commits
No commits in common. "e92e85b32e6e8efd679a29ddd07069b97a91c8f9" and "3cb5682f6294d31c5cef6ff75e5695fcd36cbbb0" have entirely different histories.
e92e85b32e
...
3cb5682f62
2 changed files with 0 additions and 7 deletions
BIN
imgs/a.png
BIN
imgs/a.png
Binary file not shown.
Before Width: | Height: | Size: 759 KiB |
|
@ -21,11 +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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue