add ios instructions

This commit is contained in:
2025-05-11 13:11:46 +01:00
parent 081481132b
commit 40f4cdad5a
5 changed files with 73 additions and 4 deletions

View File

@@ -301,6 +301,9 @@ func handleHTTPRequest(state *state) http.HandlerFunc {
} else {
writer.WriteHeader(http.StatusMethodNotAllowed)
}
} else if path == "instructions" {
f, _ := webDir.ReadFile("web/instructions.html")
writer.Write(f)
} else if path == "vapid" {
if request.Method == "" || request.Method == "GET" {
writer.Write([]byte(state.vapidPublicKey))