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

Allow fiber.Router implementation in RegisterAt #161

Merged
merged 2 commits into from Feb 9, 2023
Merged

Allow fiber.Router implementation in RegisterAt #161

merged 2 commits into from Feb 9, 2023

Conversation

ghost
Copy link

@ghost ghost commented Feb 7, 2023

This change allows mounting onto a fiber.Router, rather than only on the *fiber.App directly. Because *fiber.App also implements fiber.Router, functionality is not affected.

The change would allow adding metrics in code that does not have access to the *fiber.App, but e.g. a fiber.Router than has been returned from *fiber.App.Group(..)

Copy link
Owner

@ansrivas ansrivas left a comment

Choose a reason for hiding this comment

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

Hey @calloway-jacob thanks for your contribution. This looks good.

@ansrivas ansrivas merged commit 8dc52f0 into ansrivas:master Feb 9, 2023
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.

2 participants