1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

introduce RouteData extractor

This commit is contained in:
Nikolay Kim
2019-03-16 21:09:11 -07:00
parent 6afcecdb5f
commit 60386f1791
9 changed files with 198 additions and 37 deletions

View File

@ -1,6 +1,8 @@
use futures::IntoFuture;
use actix_web::{get, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
use actix_web::{
get, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer,
};
#[get("/resource1/{name}/index.html")]
fn index(req: HttpRequest, name: web::Path<String>) -> String {