cardn.cgi finalized
This commit is contained in:
parent
39ef31d901
commit
11d09e9368
11
src/main.rs
11
src/main.rs
@ -136,13 +136,14 @@ async fn cardn(web::Form(form): web::Form<CardVals>) -> HttpResponse {
|
|||||||
println!("READ");
|
println!("READ");
|
||||||
resp!(format!("1\n1,1\n{}",form.card_no))
|
resp!(format!("1\n1,1\n{}",form.card_no))
|
||||||
},
|
},
|
||||||
Some(CardCmd::REGISTER) => {
|
|
||||||
println!("REGISTER");
|
|
||||||
resp!("")
|
|
||||||
},
|
|
||||||
Some(CardCmd::REISSUE) => {
|
Some(CardCmd::REISSUE) => {
|
||||||
println!("REISSUE");
|
println!("REISSUE");
|
||||||
resp!("")
|
resp!("27")
|
||||||
|
},
|
||||||
|
Some(CardCmd::REGISTER) => {
|
||||||
|
println!("REGISTER");
|
||||||
|
// Add user into database later
|
||||||
|
resp!(format!("1\n1,1\n{}",form.card_no))
|
||||||
},
|
},
|
||||||
_ => HttpResponse::NotFound().into()
|
_ => HttpResponse::NotFound().into()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user