Add RSVP routes and integrate with events API router
This commit introduces a new RSVP module with endpoints for creating, reading, updating, and deleting RSVPs, along with a custom status update endpoint. The router is integrated into the events API, providing full RSVP management capabilities. Validation and error handling have been implemented to ensure data consistency.
This commit is contained in:
@@ -22,11 +22,12 @@ from app.schemas.events import (
|
||||
)
|
||||
|
||||
from app.api.routes.events import guests
|
||||
|
||||
from app.api.routes.events import rsvps
|
||||
logger = logging.getLogger(__name__)
|
||||
events_router = APIRouter()
|
||||
|
||||
events_router.include_router(guests.router, prefix="/guests", tags=["guests"])
|
||||
events_router.include_router(rsvps.router, prefix="/rsvps", tags=["rsvps"])
|
||||
|
||||
def validate_event_access(
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user