mirror of
https://github.com/ntex-rs/ntex-extras.git
synced 2025-04-06 14:27:41 +03:00
introduce RouteData extractor
This commit is contained in:
parent
6afcecdb5f
commit
60386f1791
9 changed files with 198 additions and 37 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue