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

chore(next): handles preferences routes #5041

Closed
wants to merge 4 commits into from

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Feb 9, 2024

Description

Properly handles the /payload-preferences and /payload-preferences/:id routes by piping them through to their respective operations. These routes were only being caught before because of the base collection route handlers. But the problem with that is that preferences need to find their document by key and not document ID, i.e. /payload-preferences/:key. These operations also properly handle the user, etc.

  • I have read and understand the CONTRIBUTING.md document in this repository.

@jacobsfletch
Copy link
Member Author

Hmm after further review I think this PR is probably unneeded. These routes are supposed to be attached as custom endpoints onto the preferences collection itself. Will close or change as needed.

@jacobsfletch
Copy link
Member Author

jacobsfletch commented Feb 9, 2024

Succeeded by #5042. Closing.

@jacobsfletch jacobsfletch deleted the chore/next-prefs-routes branch December 20, 2024 20:23
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