1
0
mirror of https://github.com/actix/actix-website synced 2025-03-11 10:42:58 +01:00
2019-06-17 04:12:11 -04:00

16 lines
366 B
Rust

// <resource>
use actix_web::{http::Method, web, App, HttpRequest, HttpResponse};
fn index(_req: HttpRequest) -> HttpResponse {
unimplemented!()
}
fn main() {
App::new()
.service(web::resource("/prefix").to(index))
.service(
web::resource("/user/{name}").route(web::get().to(|| HttpResponse::Ok())),
);
}
// </resource>