get users almost done i think
This commit is contained in:
parent
3daa17cccf
commit
463d4b742b
2 changed files with 4 additions and 2 deletions
|
@ -88,7 +88,9 @@ pub fn get_users(input: Form<FormGetUsers>) -> status::Custom<&'static str> {
|
|||
let response = if amount < 1 {
|
||||
String::from("-1")
|
||||
} else {
|
||||
vec![results.join("|"), format!("{}:#{}:10", amount, input.page * 10)].join("#")
|
||||
println!("{:?}", results);
|
||||
println!("{:?}", vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#"));
|
||||
vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#")
|
||||
};
|
||||
|
||||
return status::Custom(Status::Ok, Box::leak(response.into_boxed_str()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue