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: the router is not a target, refactor out of the targets dir #125

Merged
merged 3 commits into from
Feb 13, 2022
Merged

refactor: the router is not a target, refactor out of the targets dir #125

merged 3 commits into from
Feb 13, 2022

Conversation

christhomas
Copy link
Contributor

The Router is not a target. It's part of the server. So I moved it out of the targets and refactored all the imports

@jagregory
Copy link
Owner

Hey @christhomas, I like pulling the Router out of the targets. It definitely doesn't make sense to be in there. But I don't think the big Targets object should go with it, I'd prefer that stays in the targets directory, otherwise when people are adding new targets they will have to change something in server too which doesn't make sense to me (what changes together should stay together!).

Could you split that Router file to pull the Targets object out and back into the targets directory? That would make this perfect

@christhomas
Copy link
Contributor Author

christhomas commented Feb 8, 2022 via email

@christhomas
Copy link
Contributor Author

ok, I did this modification, take a look now

@christhomas
Copy link
Contributor Author

hey dude, is this PR ok now? I have more interesting PR requests to make from my next branch :)

@jagregory
Copy link
Owner

Yeah looks great. Thanks for implementing my feedback.

@jagregory jagregory merged commit 70bb6f1 into jagregory:master Feb 13, 2022
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