thesis/tex/code/registeruser.rs

12 lines
271 B
Rust
Raw Normal View History

2020-05-02 21:11:26 +03:00
struct RegisterUser {
username: String,
password: String,
admin: bool,
password_confirmation: String,
}
#[post("/auth/register")]
fn register(new_user: actix_web::web::Json<RegisterUser>) -> Result<HttpResponse, HttpResponse> {
register(new_user);
}