Skip to content

fix: 🐛 update WebPlugin to allow dynamic route and middleware addition #162

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

Merged
merged 1 commit into from
Aug 20, 2025

Conversation

Phosphorus-M
Copy link
Contributor

Changed because this way we can create plugins that depend on the WebPlugin. With this approach, we can add new routes and middlewares directly from new plugins.

I noticed that creating plugins this way was not working because the schedule function only uses the first router (the one generated inside the WebPlugin) and doesn’t allow appending new things, this PR solve that.

@Phosphorus-M Phosphorus-M changed the title feat: update WebPlugin to allow dynamic route and middleware addition fix: 🐛 update WebPlugin to allow dynamic route and middleware addition Aug 19, 2025
@holmofy holmofy merged commit 8a8395c into spring-rs:master Aug 20, 2025
2 checks passed
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