mirror of
https://github.com/actix/actix-web.git
synced 2024-10-03 08:41:55 +00:00
change marco import (#727)
This commit is contained in:
parent
1f9467e880
commit
414614e1b5
1 changed files with 1 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
||||||
use futures::IntoFuture;
|
use futures::IntoFuture;
|
||||||
|
|
||||||
#[macro_use]
|
use actix_web::{get, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
|
||||||
extern crate actix_web;
|
|
||||||
|
|
||||||
use actix_web::{middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
|
|
||||||
|
|
||||||
#[get("/resource1/{name}/index.html")]
|
#[get("/resource1/{name}/index.html")]
|
||||||
fn index(req: HttpRequest, name: web::Path<String>) -> String {
|
fn index(req: HttpRequest, name: web::Path<String>) -> String {
|
||||||
|
|
Loading…
Reference in a new issue