Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Progressive Web App #4730

Merged
merged 14 commits into from
Nov 27, 2018
Prev Previous commit
Next Next commit
fix ctx type
  • Loading branch information
SohnyBohny committed Aug 28, 2018
commit 928622eee2fe5ef1755cca5ca247bf38459d985f
8 changes: 4 additions & 4 deletions routers/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,13 +785,13 @@ func RegisterRoutes(m *macaron.Macaron) {
})

// Progressive Web App
m.Get("/manifest.json", templates.JSONRenderer(), func(ctx *macaron.Context) {
m.Get("/manifest.json", templates.JSONRenderer(), func(ctx *context.Context) {
ctx.HTML(200, "pwa/manifest_json")
})
m.Get("/serviceworker.js", templates.JSRenderer(), func(ctx *macaron.Context) {

m.Get("/serviceworker.js", templates.JSRenderer(), func(ctx *context.Context) {
ctx.HTML(200, "pwa/serviceworker_js")
})
})

// Not found handler.
m.NotFound(routers.NotFound)
Expand Down