-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Question
I realized that the definition of a route with yew-router is different syntax-wise with rocket. Apparently i don't know how other frameworks define these dynamic parts but i would like to propose to harmonize maybe the syntax with rocket.
// in rocket
#[get("/api/post/<id>]
fn ...
// in yew-router
struct AppRoutes {
#[to = "/post/{id}"
Post
}
Reactions are currently unavailable