diff --git a/src/rest/mod.rs b/src/rest/mod.rs index 7ea62de..706a646 100644 --- a/src/rest/mod.rs +++ b/src/rest/mod.rs @@ -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 = "")] async fn login(login: Form>, db: &State) -> String { match User::login(db, login.name, login.password).await { diff --git a/update.sh b/update.sh index e5668b2..99b8d4b 100755 --- a/update.sh +++ b/update.sh @@ -6,7 +6,7 @@ cd frontend npm install npm run build cd .. -cd rot_app +cd svelte npm install npm run build sudo systemctl restart rot