Skip to content

[SSF 220] - Auth Gating Controllers#185

Open
dburkhart07 wants to merge 4 commits into
mainfrom
ddb/SSF-220-auth-gating-backend
Open

[SSF 220] - Auth Gating Controllers#185
dburkhart07 wants to merge 4 commits into
mainfrom
ddb/SSF-220-auth-gating-backend

Conversation

@dburkhart07
Copy link
Copy Markdown

ℹ️ Issue

Closes #220

📝 Description

For this PR, I added proper Role and Auth gating for all endpoints according to how they are used within the apiClient and frontend. I forgot to branch it off of #177 but any endpoint that was not auth-gated was because it is deleted in there, or did not need to be.

Additionally, I also standardized some of our backend controller formats, as we had a few endpoints that called the user's id and some attribute (e.g. /:pantryId/orders in pantry controller), and replaced it to be /me, since that format is much simpler and does not require an additional gating query.

Finally, I removed a few unused frontend files and the apiClient functions used in those files, since they were then deprecated.

✔️ Verification

Verified all routes worked and all tests still passed.

🏕️ (Optional) Future Work / Notes

N/A

@Yurika-Kan Yurika-Kan self-assigned this May 29, 2026
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.

2 participants