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

Week 12 - Front End for the jobs API #3

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

Leonardo-Reyes-Munoz
Copy link
Owner

Added a public directory to handle the front-end of the jobs-api.

This destructures the userId and the jobId from the req object. Utilitizes the mongoose .findOne filter method to find the appropiate job. Sends response with job if successful
This adds updateJob logic. Destructures company, position, userId, and jobId from req object. Utilizes mongoose findneAndUpdate method to update job. Throws error if jobId is not found or provides res object with updated job.
This destructures the userId and jobId from req object. Utilizes the findOneAndRemove() mongoose method to delete job with associtedid and user. Throws error if job is not found. Provides res object with status code 200
This imports and invokes the following security packaages: helmet, cors, xss-clean, and express-rate-limit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant