Made a button for the calls

This commit is contained in:
Surya Vemulapalli
2025-03-30 01:22:25 -04:00
parent 688076c40a
commit dd85e8a9ab
2 changed files with 21 additions and 3 deletions

View File

@@ -1,9 +1,6 @@
"use client"; "use client";
import { useState } from "react"; import { useState } from "react";
import { auth0 } from "../lib/auth0"; import { auth0 } from "../lib/auth0";
import { NextApiRequest, NextApiResponse } from "next";
export default async function Home() { export default async function Home() {
@@ -89,6 +86,16 @@ export default async function Home() {
<button type="button">Add</button> <button type="button">Add</button>
<button className="bg-slate-500 text-yellow-300 text-stretch-50% font-lg rounded-md p-2" type="submit">Set contacts</button> <button className="bg-slate-500 text-yellow-300 text-stretch-50% font-lg rounded-md p-2" type="submit">Set contacts</button>
</form> </form>
<div>
<a href="/call">
<button className="bg-emerald-500 text-fuchsia-300 font-semibold font-lg rounded-md p-2">Call</button>
</a>
</div>
<p>
<a href="/auth/logout">
<button>Log out</button>
</a>
</p>
</div> </div>
); );
} }

View File

@@ -0,0 +1,11 @@
import { NextApiRequest, NextApiResponse } from "next";
import { MongoClient } from "mongodb";
export default function handler(req: NextApiRequest, res: NextApiResponse){
if(req.method === 'POST')
const { codeword, contacts } = req.body;
try{
}
}