summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 06292557b3..1c1bcd8f95 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -791,6 +791,15 @@ func RegisterRoutes(m *macaron.Macaron) {
}
})
+ // Progressive Web App
+ m.Get("/manifest.json", templates.JSONRenderer(), func(ctx *context.Context) {
+ ctx.HTML(200, "pwa/manifest_json")
+ })
+
+ m.Get("/serviceworker.js", templates.JSRenderer(), func(ctx *context.Context) {
+ ctx.HTML(200, "pwa/serviceworker_js")
+ })
+
// prometheus metrics endpoint
if setting.Metrics.Enabled {
c := metrics.NewCollector()