-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rename url prefix from signer-monitor to signer-metrics #17
Conversation
Vercel deployment URL: https://signer-metrics-8rljfn36q-hirosystems.vercel.app 🚀 |
@@ -30,7 +30,7 @@ export async function buildApiServer(args: { db: PgStore }) { | |||
await fastify.register(FastifyMetrics, { endpoint: null }); | |||
} | |||
await fastify.register(FastifyCors); | |||
await fastify.register(Api, { prefix: '/signer-monitor' }); | |||
await fastify.register(Api, { prefix: '/signer-metrics' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of a nit but can you take this opportunity to also rename paths to plural so they're more REST-like? e.g.
https://api.hiro.so/signer-monitor/v1/cycle/{cycle_number}/signer/{signer_id}
becomes
https://api.hiro.so/signer-metrics/v1/cycles/{cycle_number}/signers/{signer_id}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
## [0.2.2](v0.2.1...v0.2.2) (2024-10-28) ### Bug Fixes * rename url prefix from signer-monitor to signer-metrics ([#17](#17)) ([529e1c6](529e1c6))
🎉 This PR is included in version 0.2.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.