texting works

This commit is contained in:
BGV
2025-03-30 01:15:48 -04:00
parent 688076c40a
commit 2d8ac95978
2 changed files with 20 additions and 18 deletions

View File

@@ -16,23 +16,6 @@ export default async function Home() {
console.log("Session:", session?.user);
const handleEmergency = async () => {
// send texts
const response = await fetch("/api/sendMessage", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
message: `yo i need help`,
}),
});
if (!response.ok) {
console.error("Error sending message:", response.statusText);
return;
}
}
// If no session, show sign-up and login buttons
if (!session) {