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

Filesystem-based hooks #11215

Closed
moshe5745 opened this issue Dec 7, 2023 · 2 comments
Closed

Filesystem-based hooks #11215

moshe5745 opened this issue Dec 7, 2023 · 2 comments

Comments

@moshe5745
Copy link

Describe the problem

In the current situation if we use sequence helper function for hooks. We need to check the route in the beginning of every hook if we want them to apply only for specific routes.

Describe the proposed solution

Like all the parts of the framework that are filesystem-based for the route, maybe we can apply this to hooks too.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@DoubleMalt
Copy link

I was about to suggest something similar.

My current idea is to implement a solution that uses hooks.server to call all +server.ts files along the path and execute the exported middleware methods with the Request object as parameter.

@Conduitry
Copy link
Member

Duplicate of #6731.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
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

No branches or pull requests

3 participants