From dadadeb0662b9725604e2db07a66c86ca8d04c30 Mon Sep 17 00:00:00 2001 From: Thanh Nguyen Date: Sat, 23 Sep 2023 02:37:31 +0700 Subject: [PATCH] Remove handling `/manifest.json` --- src/server/routes.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/server/routes.go b/src/server/routes.go index ee4b6c6..4e877c6 100644 --- a/src/server/routes.go +++ b/src/server/routes.go @@ -40,7 +40,6 @@ func (s *Server) handler() http.Handler { } r.For("/", s.handleIndex) - r.For("/manifest.json", s.handleManifest) r.For("/static/*path", s.handleStatic) r.For("/api/status", s.handleStatus) r.For("/api/folders", s.handleFolderList) @@ -79,24 +78,6 @@ func (s *Server) handleStatic(c *router.Context) { http.StripPrefix(s.BasePath+"/static/", http.FileServer(http.FS(assets.FS))).ServeHTTP(c.Out, c.Req) } -func (s *Server) handleManifest(c *router.Context) { - c.JSON(http.StatusOK, map[string]interface{}{ - "$schema": "https://json.schemastore.org/web-manifest-combined.json", - "name": "yarr!", - "short_name": "yarr", - "description": "yet another rss reader", - "display": "standalone", - "start_url": s.BasePath, - "icons": []map[string]interface{}{ - { - "src": s.BasePath + "/static/graphicarts/favicon.png", - "sizes": "64x64", - "type": "image/png", - }, - }, - }) -} - func (s *Server) handleStatus(c *router.Context) { c.JSON(http.StatusOK, map[string]interface{}{ "running": s.worker.FeedsPending(),