mirror of
https://github.com/actix/actix-website
synced 2025-02-23 12:43:02 +01:00
16 lines
314 B
Rust
16 lines
314 B
Rust
use actix_web::{web, App, HttpRequest, Responder};
|
|
|
|
fn show_users(_req: HttpRequest) -> impl Responder {
|
|
unimplemented!()
|
|
}
|
|
|
|
#[rustfmt::skip]
|
|
// <scope>
|
|
pub fn main() {
|
|
App::new()
|
|
.service(
|
|
web::scope("/users")
|
|
.route("/show", web::get().to(show_users)));
|
|
}
|
|
// </scope>
|