Use thumbnail and preview gif controllers
This commit is contained in:
parent
9c477e16a2
commit
718d6d312b
@ -31,11 +31,15 @@ func Start() error {
|
|||||||
// The admin web app.
|
// The admin web app.
|
||||||
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
|
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
|
||||||
|
|
||||||
|
// Images
|
||||||
|
http.HandleFunc("/thumbnail.jpg", controllers.GetThumbnail)
|
||||||
|
http.HandleFunc("/preview.gif", controllers.GetPreview)
|
||||||
|
http.HandleFunc("/logo", controllers.GetLogo)
|
||||||
|
|
||||||
// Return a single emoji image.
|
// Return a single emoji image.
|
||||||
http.HandleFunc("/img/emoji/", middleware.RequireAdminAuth(controllers.GetCustomEmojiImage))
|
http.HandleFunc("/img/emoji/", middleware.RequireAdminAuth(controllers.GetCustomEmojiImage))
|
||||||
|
|
||||||
// return the logo
|
// return the logo
|
||||||
http.HandleFunc("/logo", controllers.GetLogo)
|
|
||||||
|
|
||||||
// return a logo that's compatible with external social networks
|
// return a logo that's compatible with external social networks
|
||||||
http.HandleFunc("/logo/external", controllers.GetCompatibleLogo)
|
http.HandleFunc("/logo/external", controllers.GetCompatibleLogo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user