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

Feat: beforeRouting option #1549

Merged
merged 14 commits into from
Feb 6, 2024
Merged

Feat: beforeRouting option #1549

merged 14 commits into from
Feb 6, 2024

Conversation

RobinTail
Copy link
Owner

@RobinTail RobinTail commented Feb 5, 2024

The feature you've been probably dreamed about.

Based on the discussion #1547.

This can enable createServer to be a standard approach in many cases where currently only the attachRouting one is working.

Example UI served by a third-party middleware on its own route.

image

@RobinTail RobinTail added the enhancement New feature or request label Feb 5, 2024
@coveralls
Copy link

coveralls commented Feb 5, 2024

Coverage Status

coverage: 100.0%. remained the same
when pulling ceb9700 on feat-before-routing
into 9240b34 on master.

@RobinTail RobinTail marked this pull request as ready for review February 5, 2024 08:56
@RobinTail RobinTail added the documentation Improvements or additions to documentation label Feb 5, 2024
Copy link
Owner Author

@RobinTail RobinTail left a comment

Choose a reason for hiding this comment

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

Good now

@lpw
Copy link

lpw commented Feb 5, 2024

Just pulled this branch from v16.7.0-beta1 and tested - works great! Indeed dreamy ;-). Nicely designed, keeping it in the server spec of createConfig. Awesome work, thank you very much.

@RobinTail RobinTail merged commit e97165a into master Feb 6, 2024
11 checks passed
@RobinTail RobinTail deleted the feat-before-routing branch February 6, 2024 08:51
RobinTail added a commit that referenced this pull request Feb 19, 2024
The feature you've been probably dreamed about.

Based on the discussion
#1547.

This can enable `createServer` to be a standard approach in many cases
where currently only the `attachRouting` one is working.

Example UI served by a third-party middleware on its own route.


![image](https://github.com/RobinTail/express-zod-api/assets/13189514/c5fdd283-f2dd-458a-a0e5-f2d543b19863)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants