-
Notifications
You must be signed in to change notification settings - Fork 108
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
Refactored API Routes into Separate Files #263
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make these changes and then it LGTM 🚀
I would rename the |
👍🏽 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Thank you both !! |
Description
Moved API Routes from
index.ts
into a routes folder. Routes folder includes user and auth folders with respective route handlers. Routes are contained within theuser
andauth
folders which each have their own respective route collector inauth/index.ts
anduser/index.ts
. This funnels into a central route handler inroutes/index.ts
which is thenapp.use()
in the original serversrc/index.ts
.Closes #240