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

Refactor Router Static Methods #27

Merged
merged 3 commits into from
Apr 27, 2023
Merged

Refactor Router Static Methods #27

merged 3 commits into from
Apr 27, 2023

Conversation

antonio-gg-dev
Copy link
Member

📚 Description

Now that the Router is instantiable, it doesn't make sense for the findRoute, handleException, and findHandler methods to require the routes and handlers as props. Instead, I have made these methods non-static and they now directly retrieve these values from the instance's attributes.

@Chemaclass Chemaclass merged commit 749cb08 into main Apr 27, 2023
@Chemaclass Chemaclass deleted the refactor-router-methods branch April 27, 2023 10:45
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.

3 participants