renewal-unlock: orders.renews_at lazy expiry + owner unlock notices (ntfy/sms channels, exempt from metering) — verified

This commit is contained in:
2026-08-10 10:10:50 +10:00
parent 8b5db410a3
commit 9d43403f6f
8 changed files with 141 additions and 33 deletions

View File

@@ -12,6 +12,7 @@ import (
"wherewoof/frontend/internal/auth"
"wherewoof/frontend/internal/db"
"wherewoof/frontend/internal/handlers"
"wherewoof/frontend/internal/notify"
"wherewoof/frontend/internal/sms"
"wherewoof/frontend/internal/storage"
)
@@ -60,7 +61,7 @@ func main() {
log.Fatal("storage:", err)
}
app := handlers.New(db.New(pool), tpl, sender, store)
app := handlers.New(db.New(pool), tpl, sender, store, notify.New(sender))
mux := http.NewServeMux()
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))