feat: POST /api/waitlist — backend endpoint for registration waitlist

- server.go: route registration (public, rate-limited)
- soc_handlers.go: handleWaitlist with email validation, input sanitization
- service.go: AddWaitlistEntry with audit trail + structured logging
- Frontend form at /register already submits to this endpoint
This commit is contained in:
DmitrL-dev 2026-03-24 15:46:59 +10:00
parent 29a0116125
commit 413fa8aa2c
3 changed files with 79 additions and 0 deletions

View file

@ -264,6 +264,8 @@ func (s *Server) Start(ctx context.Context) error {
mux.HandleFunc("POST /api/v1/scan", s.handlePublicScan)
// Usage endpoint — returns scan quota for caller
mux.HandleFunc("GET /api/v1/usage", s.handleUsage)
// Waitlist endpoint — registration interest capture (no auth, rate-limited)
mux.HandleFunc("POST /api/waitlist", s.handleWaitlist)
// pprof debug endpoints (§P4C) — gated behind EnablePprof()
if s.pprofEnabled {