mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-28 11:22:10 +01:00
29 lines
667 B
Go
29 lines
667 B
Go
//go:build nowebpush
|
|
|
|
package server
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
const (
|
|
// WebPushAvailable is a constant used to indicate that WebPush support is available.
|
|
// It can be disabled with the 'nowebpush' build tag.
|
|
WebPushAvailable = false
|
|
)
|
|
|
|
func (s *Server) handleWebPushUpdate(w http.ResponseWriter, r *http.Request, v *visitor) error {
|
|
return errHTTPNotFound
|
|
}
|
|
|
|
func (s *Server) handleWebPushDelete(w http.ResponseWriter, r *http.Request, _ *visitor) error {
|
|
return errHTTPNotFound
|
|
}
|
|
|
|
func (s *Server) publishToWebPushEndpoints(v *visitor, m *message) {
|
|
// Nothing to see here
|
|
}
|
|
|
|
func (s *Server) pruneAndNotifyWebPushSubscriptions() {
|
|
// Nothing to see here
|
|
}
|