spaxel/mothership
jedarden 37571ece97 api/notifications: register preview endpoint in main.go
The GET /api/notifications/preview endpoint was already implemented
in internal/api/notifications.go but was never registered in main.go.
This commit wires up the NotificationsHandler to enable the test
thumbnail endpoint for UI development and QA.

The endpoint accepts query parameters:
- type: notification type (fall, anomaly, zone_enter, sleep)
- person: person name (optional, defaults to "Alice")

It calls the appropriate Generate*Thumbnail function from the
render package and returns PNG bytes with Content-Type: image/png.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 13:09:54 -04:00
..
cmd api/notifications: register preview endpoint in main.go 2026-05-05 13:09:54 -04:00
internal api/notifications: register preview endpoint in main.go 2026-05-05 13:09:54 -04:00
test/acceptance test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 07:38:16 -04:00
tests/e2e test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
go.mod feat: implement spatial quick actions context menu for 3D scene 2026-04-10 22:56:17 -04:00
go.sum feat: implement spatial quick actions context menu for 3D scene 2026-04-10 22:56:17 -04:00
mothership mqtt: wire security_mode and rebaseline command subscriptions 2026-05-05 12:51:37 -04:00
sim ota: implement auto-update with canary strategy and quiet window 2026-05-05 12:41:39 -04:00
test_goroutine feat: implement webhook action firing & fault tolerance for automations 2026-04-06 21:39:51 -04:00
test_syntax feat: implement webhook action firing & fault tolerance for automations 2026-04-06 21:39:51 -04:00