diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 11:28:29 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 11:29:12 -0800 |
commit | 5a69a61d4841a35d7ddcb761a688db8c688314d6 (patch) | |
tree | b807ee1da5b0705e7649f70742d8198f351c1224 /ui/static_manifest.go | |
parent | 0925899cee9362cf09e982487bd480e2b09041f4 (diff) |
Move UI middlewares and routes to ui package
Diffstat (limited to 'ui/static_manifest.go')
-rw-r--r-- | ui/static_manifest.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/static_manifest.go b/ui/static_manifest.go index 51369a2..50e7e98 100644 --- a/ui/static_manifest.go +++ b/ui/static_manifest.go @@ -13,8 +13,7 @@ import ( "miniflux.app/model" ) -// WebManifest renders web manifest file. -func (c *Controller) WebManifest(w http.ResponseWriter, r *http.Request) { +func (h *handler) showWebManifest(w http.ResponseWriter, r *http.Request) { type webManifestIcon struct { Source string `json:"src"` Sizes string `json:"sizes"` @@ -38,13 +37,13 @@ func (c *Controller) WebManifest(w http.ResponseWriter, r *http.Request) { ShortName: "Miniflux", Description: "Minimalist Feed Reader", Display: "minimal-ui", - StartURL: route.Path(c.router, "unread"), + StartURL: route.Path(h.router, "unread"), ThemeColor: themeColor, BackgroundColor: themeColor, Icons: []webManifestIcon{ - webManifestIcon{Source: route.Path(c.router, "appIcon", "filename", "icon-120.png"), Sizes: "120x120", Type: "image/png"}, - webManifestIcon{Source: route.Path(c.router, "appIcon", "filename", "icon-192.png"), Sizes: "192x192", Type: "image/png"}, - webManifestIcon{Source: route.Path(c.router, "appIcon", "filename", "icon-512.png"), Sizes: "512x512", Type: "image/png"}, + webManifestIcon{Source: route.Path(h.router, "appIcon", "filename", "icon-120.png"), Sizes: "120x120", Type: "image/png"}, + webManifestIcon{Source: route.Path(h.router, "appIcon", "filename", "icon-192.png"), Sizes: "192x192", Type: "image/png"}, + webManifestIcon{Source: route.Path(h.router, "appIcon", "filename", "icon-512.png"), Sizes: "512x512", Type: "image/png"}, }, } |