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

1. EVENTS (BACKEND): Work on eventRoutes.js and eventController.js #70

Open
trimakichan opened this issue May 10, 2023 · 0 comments
Open
Assignees

Comments

@trimakichan
Copy link
Collaborator

  • Create an "eventController.js" file inside the "controllers" folder .

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

@trimakichan trimakichan converted this from a draft issue May 10, 2023
@trimakichan trimakichan moved this from Todo to In Progress in Kal - Event Page May 10, 2023
@trimakichan trimakichan moved this from In Progress to Todo in Kal - Event Page May 10, 2023
@trimakichan trimakichan moved this from Todo to In Progress in Kal - Event Page May 16, 2023
@trimakichan trimakichan moved this from In Progress to Redux Back-End Done -SM: Makiko in Kal - Event Page May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Back-End Done -SM: Makiko
Development

No branches or pull requests

2 participants