💬 Apps como "Sample" e Integra macro join_string!
This commit is contained in:
parent
5248b66702
commit
6701fb3e90
11 changed files with 60 additions and 57 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue