-
Hi,
And I would like to generate a route for it:
How would I go about doing this? I currently have
But that doesn't work because it doesn't properly set the route path in the #[get()] macro. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You probably want to use the
That being said, why do you want to do this? Rocket routes are still functions you can call, so
Rocket already internally generates a wrapper that just calls your function. |
Beta Was this translation helpful? Give feedback.
-
I ended up having to use a proc macro. I packaged it up in a crate here: https://github.com/Sidekick-AI/retrofit |
Beta Was this translation helpful? Give feedback.
I ended up having to use a proc macro. I packaged it up in a crate here: https://github.com/Sidekick-AI/retrofit