Add unsplash image proxy for images and thumbnails

This commit is contained in:
kolaente 2020-05-29 15:33:46 +02:00
parent c685250c96
commit a0fb8bd32d
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 88 additions and 7 deletions

View file

@ -459,6 +459,8 @@ func registerAPIRoutes(a *echo.Group) {
}
a.GET("/backgrounds/unsplash/search", unsplashBackgroundProvider.SearchBackgrounds)
a.POST("/lists/:list/backgrounds/unsplash", unsplashBackgroundProvider.SetBackground)
a.GET("/backgrounds/unsplash/images/:image/thumb", unsplash.ProxyUnsplashThumb)
a.GET("/backgrounds/unsplash/images/:image", unsplash.ProxyUnsplashImage)
}
}
}