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

Generate get method over post when both exist #115

Closed
wants to merge 1 commit into from
Closed

Conversation

razor-x
Copy link
Contributor

@razor-x razor-x commented Sep 28, 2023

No description provided.

!isGet &&
["POST", "PUT", "PATCH"].some((method) =>
routeSpec.methods.includes(method)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should either 1) flag this or 2) have seam connect perform the filtering

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm leaning towards (2), I don't think nextlove should have this kind of preference

Copy link
Contributor Author

@razor-x razor-x Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it does have a preference, so this update just switches the preference. We can flag it. We can't do 2 unless we update this function to generate all methods. Good first issue? I'd need help on this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to merge this and update seam connect to use it. I can add a flag if we think there is impact other than seam connect, but I consider this a bug at the moment.

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.

None yet

3 participants