We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem description:
Related to #46 but should probably happen first. The app uses a weird pattern to attach the routes to the express app. See https://github.com/rithmschool/numbers_api/blob/master/app.js#L124 and https://github.com/rithmschool/numbers_api/blob/master/routes/api.js#L99.
Suggested solution:
Refactor to use express.Router. This will also be beneficial so that we can silo all of these routes and create a separate router for a v2 of the API.
express.Router
The text was updated successfully, but these errors were encountered:
Merge pull request #69 from rithmschool/routes-refactor
4ef5767
Routes Refactor - Issue #54
gary-rivera
jacobson-ben
No branches or pull requests
Problem description:
Related to #46 but should probably happen first. The app uses a weird pattern to attach the routes to the express app. See https://github.com/rithmschool/numbers_api/blob/master/app.js#L124 and https://github.com/rithmschool/numbers_api/blob/master/routes/api.js#L99.
Suggested solution:
Refactor to use
express.Router
. This will also be beneficial so that we can silo all of these routes and create a separate router for a v2 of the API.The text was updated successfully, but these errors were encountered: