mirror of
https://github.com/actix/actix-website
synced 2024-11-28 02:22:57 +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>
|