1
0
mirror of https://github.com/actix/actix-website synced 2025-01-23 00:25:55 +01:00
2020-09-12 16:21:54 +01:00

15 lines
307 B
Rust

use actix_web::{get, web, App, HttpRequest, Responder};
#[get("/show")]
async fn show_users(_req: HttpRequest) -> impl Responder {
"unimplemented!"
}
// <scope>
#[actix_web::main]
async fn main() {
let scope = web::scope("/users").service(show_users);
App::new().service(scope);
}
// </scope>