feat(pwa): add web share target for text and images with offline queue
This commit is contained in:
1 parent
c181ffea54
commit
86d2cd0138
9 files changed
+360
-2
No files matched your search
@@ -308,6 +308,11 @@ func (s *Server) Router() http.Handler {
|
||||
})
|
||||
})
|
||||
|
||||
// Web Share Target fallback when service worker is not active yet: redirect to /
|
||||
r.Post("/share-target", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, "/", http.StatusSeeOther)
|
||||
})
|
||||
|
||||
// Embedded Frontend SPA Handler
|
||||
if s.staticFS != nil {
|
||||
fileServer := http.FileServer(http.FS(s.staticFS))
|
||||
|
||||
Reference in new issue
Block a user