💬 Apps como "Sample" e Integra macro join_string!

This commit is contained in:
Manuel Cillero 2024-12-22 14:54:05 +01:00
parent 5248b66702
commit 6701fb3e90
11 changed files with 60 additions and 57 deletions

View file

@ -4,11 +4,10 @@ struct HelloName;
impl PackageTrait for HelloName {
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
scfg.service(hello_name);
scfg.route("/hello/{name}", service::web::get().to(hello_name));
}
}
#[service::get("/hello/{name}")]
async fn hello_name(
request: HttpRequest,
path: service::web::Path<String>,