1
0
mirror of https://github.com/actix/actix-website synced 2025-02-23 12:43:02 +01:00

15 lines
289 B
Rust

// <setup>
use actix_web::{web, App, HttpRequest, Responder};
fn index(_req: HttpRequest) -> impl Responder {
"Hello world!"
}
#[rustfmt::skip]
pub fn main() {
App::new().service(
web::scope("/app")
.route("/index.html", web::get().to(index)));
}
// </setup>