mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
15 lines
271 B
Rust
15 lines
271 B
Rust
use actix_web::{App, HttpRequest, HttpResponse};
|
|
|
|
// <prefix>
|
|
fn show_users(req: HttpRequest) -> HttpResponse {
|
|
unimplemented!()
|
|
}
|
|
|
|
fn main() {
|
|
App::new()
|
|
.prefix("/users")
|
|
.resource("/show", |r| r.f(show_users))
|
|
.finish();
|
|
}
|
|
// </prefix>
|