feat(api): add tags to event and user routes for better categorization
This commit is contained in:
parent
19e07d9980
commit
91f4c524b9
8 changed files with 28 additions and 1 deletions
|
@ -8,6 +8,8 @@ import { NextResponse } from 'next/server';
|
|||
* get:
|
||||
* summary: Get all events for the authenticated user
|
||||
* description: Returns all events where the user is an organizer or a participant.
|
||||
* tags:
|
||||
* - Event
|
||||
* responses:
|
||||
* 200:
|
||||
* description: List of events for the user.
|
||||
|
@ -110,6 +112,8 @@ export const GET = auth(async (req) => {
|
|||
* post:
|
||||
* summary: Create a new event
|
||||
* description: Creates a new event as the authenticated user (organizer).
|
||||
* tags:
|
||||
* - Event
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue