feat(api): implement event management endpoints for GET, DELETE, and PATCH operations
This commit is contained in:
parent
5dc0bb0517
commit
82eca9e0e2
2 changed files with 412 additions and 2 deletions
|
@ -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' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue