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

CORE-991: only run express middleware on express routes #141

Closed
wants to merge 1 commit into from

Conversation

ianjkaplan
Copy link

@ianjkaplan ianjkaplan commented Aug 17, 2024

Checklist

@ianjkaplan ianjkaplan force-pushed the skip-middleware-option branch from b073c6e to 7ad0965 Compare August 18, 2024 16:05
@ianjkaplan ianjkaplan force-pushed the skip-middleware-option branch from 7ad0965 to 8f0dc68 Compare August 18, 2024 16:12
* only run middleware on routes that have not been registered with fastify
* middleware should be run as hooks with fastify routes for performance reasons
* and for compatibility with fastify.inject
*/
function runConnect (req, reply, next) {
Copy link
Author

Choose a reason for hiding this comment

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

main change


interface FastifyContextConfig {
/**
* @private
Copy link
Author

Choose a reason for hiding this comment

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

expressing that this type is a private type and one we probably shouldnt use in application code without good reason

@ianjkaplan ianjkaplan closed this Aug 18, 2024
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.

1 participant