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

added routes to check all unapproved pantries and to approve of pantries #9

Draft
wants to merge 1 commit into
base: pantries-api-endpoints
Choose a base branch
from

Conversation

denniwang
Copy link

ℹ️ Issue

Closes https://trello.com/c/21bAJGQk/11-create-an-api-route-allowing-users-to-approve-deny-pantrys-request-to-create-a-new-account

📝 Description

Added an api endpoint that retrieves pantries waiting for approval.
Added an api endpoint that sets the pantry approved status to true.

✔️ Verification

Tested using swagger, both endpoints are able to manipulate dummy data inputted via pgadmin.

🏕️ (Optional) Future Work / Notes

I dont think there is proper authentication on either endpoints. Will need to consult Sam about auth.

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