1
0
mirror of https://github.com/actix/actix-website synced 2025-01-23 00:25:55 +01:00

15 lines
307 B
Rust
Raw Normal View History

2020-09-12 16:21:54 +01:00
use actix_web::{get, web, App, HttpRequest, Responder};
2020-09-12 16:21:54 +01:00
#[get("/show")]
2019-12-29 01:15:22 +09:00
async fn show_users(_req: HttpRequest) -> impl Responder {
"unimplemented!"
}
// <scope>
2020-09-12 16:21:54 +01:00
#[actix_web::main]
2019-12-29 01:15:22 +09:00
async fn main() {
2020-09-12 16:21:54 +01:00
let scope = web::scope("/users").service(show_users);
App::new().service(scope);
}
// </scope>