Made a button for the calls
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
11
React/src/pages/api/databaseStorage.ts
Normal file
11
React/src/pages/api/databaseStorage.ts
Normal 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{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user