Replies: 1 comment
-
|
At the moment you cannot, no. However there would be no benefit to doing this. You can use a module to group routes, however, which gives you nearly the same functionality: mod foo {
#[get("/")]
fn f() { }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I wanted to ask if one is able to add a route attribute inside a struct implementation like this:
I am getting the error: struct is not supported in
traits orimplsBeta Was this translation helpful? Give feedback.
All reactions