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
In the "eventController.js"
Import "asynHandler" and Event model, then move functions from "eventRoutes.js"to a "eventController.js.
Function name: "getEvents" and "getEventbyId"
In the "evnetRoutes.js"
redirect to "getEvents" function if the URL is '/'
redirect to "getEventbyId" function if the the URL is '/:id'
NOTE: write comments using @desc, @route and @access for a good practice
The text was updated successfully, but these errors were encountered:
ImranS19
No branches or pull requests
In the "eventController.js"
In the "evnetRoutes.js"
redirect to "getEvents" function if the URL is '/'
redirect to "getEventbyId" function if the the URL is '/:id'
NOTE: write comments using @desc, @route and @access for a good practice
The text was updated successfully, but these errors were encountered: