Skip to content
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

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

zone117x
Copy link
Member

No description provided.

Copy link

github-actions bot commented Oct 28, 2024

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' });
Copy link
Collaborator

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}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@rafaelcr rafaelcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@zone117x zone117x merged commit 529e1c6 into main Oct 28, 2024
2 checks passed
@zone117x zone117x deleted the fix/url-prefix-rename branch October 28, 2024 15:09
blockstack-devops pushed a commit that referenced this pull request Oct 28, 2024
## [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))
@blockstack-devops
Copy link

🎉 This PR is included in version 0.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants