Installable as an app (PWA): manifests, offline-only service worker, icons
This commit is contained in:
parent
b26360e8f3
commit
44708d5f3c
16 changed files with 246 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ func (s *Server) Handler() http.Handler {
|
|||
})
|
||||
mux.HandleFunc("GET /admin", s.adminPage(static))
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", files))
|
||||
mux.HandleFunc("GET /manifest.webmanifest", s.manifest(false))
|
||||
mux.HandleFunc("GET /admin.webmanifest", s.manifest(true))
|
||||
mux.HandleFunc("GET /sw.js", serviceWorker(static))
|
||||
|
||||
mux.HandleFunc("GET /auth/login", s.login)
|
||||
mux.HandleFunc("GET /auth/callback", s.callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue