You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Create a method in the events.js controller called approveEvents
Method will change specific event objects status to approved
Create post route in events.js
Create axios request
Acceptance Criteria
Test updated event object has been changed from pending to approved
The text was updated successfully, but these errors were encountered:
A couple things I noticed from my first look at this issue
It's unclear from the description whether the endpoint approveEvents method should take a single event or many to be approved all at once. I think the second case makes the most sense since you could also just provide a single event as well, but it might also make sense to add separate endpoints for approveEvent (singular) and approveEvents (multiple) for clarity. I just wanted to get clarification before making a decision.
I believe a PATCH would be more appropriate here instead of POST since we should only be updating a single property on each event.
Related Issues
Project: Admin Dashboard
Depends on:
Description
Create a method in the
events.js
controller calledapproveEvents
Method will change specific event objects status to approved
Create post route in
events.js
Create axios request
Acceptance Criteria
Test updated event object has been changed from pending to approved
The text was updated successfully, but these errors were encountered: