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

Need access to ctx.handlers #864

Closed
bjesuiter opened this issue Oct 25, 2022 · 1 comment
Closed

Need access to ctx.handlers #864

bjesuiter opened this issue Oct 25, 2022 · 1 comment

Comments

@bjesuiter
Copy link
Contributor

Hi there,

I would like to fuse fresh & trpc (v10).

For this to work, I need the ability to add routes programatically to the http server underneath fresh.
I found the following code which starts the HTTP server:

Bildschirmfoto 2022-10-26 um 01 39 53

Maybe a clean idea would be to be able to access ctx.handlers() via a hook as a plugin?
If that's the case, I could write a trpc plugin for fresh, which would be mega awesome! <3

@bjesuiter
Copy link
Contributor Author

Update: I'm currently looking more into the issue, this is more complicated, than i anticipated.

Closed this issue and converted it into discussion: #866

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

1 participant