This feature adds functionality to the event branch enabling the API consumers to make DELETE request to the endpoint to delete an event
How Has This Been Tested?
I've tested this endpoint using POSTMAN and it returns a successful response on deleting an event successfully and also returns an error message if the event does not exist
Screenshots (if appropriate):
Deleting an event that exists
Deleting an event that doesn't exist
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
I added the delete route for an event. I also added a controller function that deletes the event based on the ID passed from the request parameters
Related Issue
https://github.com/hngx-org/Hawks-events-backend/issues/19
Motivation and Context
This feature adds functionality to the event branch enabling the API consumers to make DELETE request to the endpoint to delete an event
How Has This Been Tested?
I've tested this endpoint using POSTMAN and it returns a successful response on deleting an event successfully and also returns an error message if the event does not exist
Screenshots (if appropriate):
Deleting an event that exists
Deleting an event that doesn't exist
Types of changes
Checklist: