mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
12 lines
319 B
JavaScript
12 lines
319 B
JavaScript
import { query } from '../../../lib/db';
|
|
|
|
export async function POST(request) {
|
|
const { clueId, teamId } = await request.json();
|
|
|
|
await query('UPDATE clues SET found = TRUE WHERE id = ? AND team_id = ?', [
|
|
clueId,
|
|
teamId,
|
|
]);
|
|
|
|
return Response.json({ message: 'Clue marked as found' });
|
|
} |