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

Create options for EndpointHandler #120

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

cosmicboots
Copy link
Contributor

This adds options to the EndpointHandler type to optionally use endpoint routing logic.

This fixes #119.

@renerocksai if this approach is reasonable, I'll work on updating the any documentation or examples that reference the code before marking this PR complete.

@renerocksai
Copy link
Member

Yeah! NICE!!! Please continue! Great work! I am not sure about the route in the option name. Maybe sth with path would be more appropriate. But perfecting naming is just the icing on the cake.

@cosmicboots cosmicboots marked this pull request as ready for review July 26, 2024 00:48
@cosmicboots
Copy link
Contributor Author

@renerocksai should be all cleaned up in 903716b.

I agree that having "path" in the setting would make more sense, so I went with checkPath. That was the clearest way to name it in my head. Hopefully the doc comments remove all doubt should someone question what the option does.

@renerocksai
Copy link
Member

This looks really good now! Thanks for this contribution!!!

@renerocksai renerocksai merged commit e7a6849 into zigzap:master Jul 27, 2024
2 checks passed
@cosmicboots cosmicboots deleted the endpoint-middleware branch July 28, 2024 08:02
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.

Middleware not respecting Endpoint's path setting
2 participants