1
0
mirror of https://github.com/actix/actix-website synced 2025-03-15 20:53:07 +01:00

15 lines
259 B
Rust
Raw Normal View History

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