mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
Merge branch '1.0' of github.com:actix/actix-web into 1.0
This commit is contained in:
commit
6afcecdb5f
@ -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 New Issue
Block a user