summaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 488c500..f640aba 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -134,6 +134,7 @@ func (s *Server) routes() {
s.mux.HandleFunc("GET /api/health", s.handleHealth)
s.mux.HandleFunc("POST /api/webhooks/github", s.handleGitHubWebhook)
s.mux.HandleFunc("GET /api/push/vapid-key", s.handleGetVAPIDKey)
+ s.mux.HandleFunc("GET /api/push/sw.js", s.handleServiceWorker)
s.mux.HandleFunc("POST /api/push/subscribe", s.handlePushSubscribe)
s.mux.HandleFunc("DELETE /api/push/subscribe", s.handlePushUnsubscribe)
s.mux.HandleFunc("GET /api/drops", s.handleListDrops)