Skip to content

fix: add uptimeSeconds and ISO timestamp to health endpoint#49

Merged
emrekayat merged 1 commit into
emrekayat:mainfrom
fwseyi:fix/health-uptime-metadata
Jun 29, 2026
Merged

fix: add uptimeSeconds and ISO timestamp to health endpoint#49
emrekayat merged 1 commit into
emrekayat:mainfrom
fwseyi:fix/health-uptime-metadata

Conversation

@fwseyi

@fwseyi fwseyi commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds uptimeSeconds to the GET /health response so operators and demos can see basic runtime metadata alongside the existing timestamp field.

Changes

apps/api/src/routes/public.ts

  • Added uptimeSeconds: process.uptime() to the health response object
  • All existing fields (ok, service, version, nodeEnv, network, sponsorshipEnabled, timestamp) unchanged

apps/api/src/routes/public.test.ts

  • Added assertions for uptimeSeconds:
    • typeof response.body.uptimeSeconds === 'number'
    • response.body.uptimeSeconds >= 0

Test Results

✓ returns health metadata

✓ returns provider catalog and category groupings

✓ returns safe default analytics shape for fresh storage

✓ returns usage and analytics summaries from isolated sqlite storage

4/4 tests passing

Security

No secrets, environment variables, wallet addresses, or host internals exposed — only process.uptime() which is safe public metadata.

Closes #32

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

@fwseyi is attempting to deploy a commit to the emrekayat's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@fwseyi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@emrekayat emrekayat merged commit c0a399c into emrekayat:main Jun 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add health response uptime and ISO timestamp metadata

2 participants