Skip to content

Conversation

@zachsmith1
Copy link
Contributor

This pull request refines the routing logic for project-related API requests in the ProjectRouterWithRequestInfo middleware. The changes ensure that only requests targeting the correct parent API group and version are intercepted and that URL path rewriting is more robust and maintainable.

Routing logic improvements:

  • Updated the request interception condition to only process requests with the correct API group/version prefix using HasPrefix, making the filter more precise and reducing accidental matches.
  • Simplified the URL path rewriting logic by using TrimPrefix on the tail segment, which improves clarity and reduces potential errors in path manipulation.

@joggrbot
Copy link
Contributor

joggrbot bot commented Dec 1, 2025

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 5c586a8 | Powered by Joggr

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