mirror of
https://github.com/actix/actix-website
synced 2024-11-24 00:41:07 +01:00
15 lines
307 B
Rust
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>
|