Merge branch 'dev' into authentication
This commit is contained in:
commit
59a49698a1
1 changed files with 6 additions and 0 deletions
|
@ -21,4 +21,10 @@ 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)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue