mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-07-23 16:51:01 +02:00
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:
parent
29a0116125
commit
413fa8aa2c
3 changed files with 79 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue