
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
13 lines
460 B
Python
13 lines
460 B
Python
from fastapi import APIRouter, Depends
|
|
|
|
from app.routers.auth import get_current_user
|
|
from app.routers.address import address_router
|
|
from app.routers.contact import contact_router
|
|
|
|
protected_router = APIRouter(
|
|
dependencies=[Depends(get_current_user)] # Applies to all routes
|
|
)
|
|
|
|
protected_router.include_router(address_router, prefix="/addresses", tags=["addresses"])
|
|
protected_router.include_router(contact_router, prefix="/contacts", tags=["contacts"])
|