feat: webhook-driven law change notifications

↗ view on GitHub · David Wozniak · 2026-05-27 · b98e714f

- Add /webhooks/legalize endpoint with signature verification
- Invalidate law cache on law.updated/law.repealed events
- Broadcast notifications to all users on law changes
- Add migrations/001_notifications.sql (Supabase RLS)
- Register webhook route before express.json() for raw body access
- Add LEGALIZE_WEBHOOK_SECRET to .env.example
Repository wozhub/inquilino
Author David Wozniak <2332920+wozhub@users.noreply.github.com>
Authored
Parents 1bab56ac
Stats 4 files changed , +102 , -1
Part of Webhook-driven law-change notifications

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-b98e714f.md from inside the repo you want the change in.

⬇ Download capture-commit-b98e714f.md