feat(api): implement event management endpoints for GET, DELETE, and PATCH operations

This commit is contained in:
Dominik 2025-06-14 11:41:10 +02:00
parent 5dc0bb0517
commit 82eca9e0e2
Signed by: dominik
GPG key ID: 06A4003FC5049644
2 changed files with 412 additions and 2 deletions

View file

@ -89,7 +89,7 @@ export const GET = auth(async function GET(req) {
/**
* @swagger
* /api/user/me:
* put:
* patch:
* description: Update the information of the currently authenticated user.
* requestBody:
* required: true
@ -163,7 +163,7 @@ export const GET = auth(async function GET(req) {
* message: 'No fields to update'
* }
*/
export const PUT = auth(async function PUT(req) {
export const PATCH = auth(async function PATCH(req) {
if (!req.auth)
return NextResponse.json(
{ success: false, message: 'Not authenticated' },