stuff
This commit is contained in:
@@ -18,10 +18,13 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
// Ensure the database is connected
|
// Ensure the database is connected
|
||||||
await connectToDatabase();
|
await connectToDatabase();
|
||||||
|
|
||||||
|
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
const { codeword, contacts } = req.body;
|
const { email, codeword, contacts } = req.body;
|
||||||
|
|
||||||
// Perform database operations here
|
// Perform database operations here
|
||||||
|
|
||||||
|
|
||||||
console.log("Codeword:", codeword);
|
console.log("Codeword:", codeword);
|
||||||
console.log("Contacts:", contacts);
|
console.log("Contacts:", contacts);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user