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

Use glob to match *.route files #453

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CodeRhymesLife
Copy link

These changes use glob to mount routes (i.e. auth.route.js and user.route.js).

1 main question:
In these changes I use the first part of the name as the url. As a result I had to rename user.route.js to userS.route.js so the route stayed the same--I also renamed the other user files as well to be consistent. Do you have any thoughts on this?

BTW, thank you for this example. I have a bunch of APIs I wrote that I'm planning to open source soon, so I'm re-writing them to be consistent with the structure you have here. I really like the organization and readability. Thanks!

If you have any comments on style or organization please let me know.

@CodeRhymesLife
Copy link
Author

I'm not sure why CI is failing. I'm using yarn 1.7.0

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.

None yet

1 participant