add example code; updated deploy script

This commit is contained in:
2023-07-16 20:54:11 +02:00
parent e6d7f15cd8
commit 054efc99e3
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ struct LoginForm<'r> {
password: &'r str,
}
// name, is_admin, is_guest, is_cox
// curl -X POST localhost:8000/api/login -d "name=rower&password=rower"
#[post("/", data = "<login>")]
async fn login(login: Form<LoginForm<'_>>, db: &State<SqlitePool>) -> String {
match User::login(db, login.name, login.password).await {