mirror of
https://github.com/actix/actix-website
synced 2025-02-23 20:53:01 +01:00
29 lines
439 B
Rust
29 lines
439 B
Rust
mod cfg;
|
|
mod dhandler;
|
|
mod minfo;
|
|
mod norm;
|
|
mod norm2;
|
|
mod path;
|
|
mod path2;
|
|
mod pbuf;
|
|
mod pred;
|
|
mod pred2;
|
|
mod resource;
|
|
mod scope;
|
|
mod url_ext;
|
|
mod urls;
|
|
|
|
// <main>
|
|
use actix_web::{web, App, HttpRequest, HttpResponse};
|
|
|
|
fn index(_req: HttpRequest) -> HttpResponse {
|
|
unimplemented!()
|
|
}
|
|
|
|
fn main() {
|
|
App::new()
|
|
.route("/user/{name}", web::get().to(index))
|
|
.route("/user/{name}", web::post().to(index));
|
|
}
|
|
// </main>
|