Move utils and test config to separate packages #58

This commit is contained in:
Michael Mayer
2018-11-17 06:21:39 +01:00
parent f3129097cf
commit fb91ce9a06
47 changed files with 1220 additions and 749 deletions

View File

@@ -21,7 +21,7 @@ var photoIconSvg = []byte(`
// type: string Format, either "fit" or "square"
// size: int Size in pixels
// hash: string The file hash as returned by the search API
func GetThumbnail(router *gin.RouterGroup, conf *photoprism.Config) {
func GetThumbnail(router *gin.RouterGroup, conf photoprism.Config) {
router.GET("/thumbnails/:type/:size/:hash", func(c *gin.Context) {
fileHash := c.Param("hash")
thumbnailType := c.Param("type")