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> |
||
|---|---|---|
| .. | ||
| cmd | ||
| internal | ||
| test/acceptance | ||
| tests/e2e | ||
| go.mod | ||
| go.sum | ||
| mothership | ||
| sim | ||
| test_goroutine | ||
| test_syntax | ||