add example code; updated deploy script

This commit is contained in:
philipp 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, 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>")] #[post("/", data = "<login>")]
async fn login(login: Form<LoginForm<'_>>, db: &State<SqlitePool>) -> String { async fn login(login: Form<LoginForm<'_>>, db: &State<SqlitePool>) -> String {
match User::login(db, login.name, login.password).await { match User::login(db, login.name, login.password).await {

View File

@ -6,7 +6,7 @@ cd frontend
npm install npm install
npm run build npm run build
cd .. cd ..
cd rot_app cd svelte
npm install npm install
npm run build npm run build
sudo systemctl restart rot sudo systemctl restart rot