Skip to main content

routes

Macro routes 

Source
routes!() { /* proc-macro */ }
Expand description

Collect the routes of handlers annotated with the route attributes.

routes![create_user, users::list] expands to ::std::vec![__siderite_route_create_user(), users::__siderite_route_list()] (only the last path segment is rewritten), suitable for App::routes.