Fix tenant register

This commit is contained in:
Urtzi Alfaro
2025-07-20 23:15:57 +02:00
parent daab1b77e1
commit 38e78e7163
5 changed files with 34 additions and 60 deletions

View File

@@ -53,7 +53,6 @@ services:
- DATABASE_URL=postgresql+asyncpg://auth_user:auth_pass123@auth-db:5432/auth_db
- REDIS_URL=redis://redis:6379/0
- RABBITMQ_URL=amqp://bakery:forecast123@rabbitmq:5672/
- JWT_SECRET_KEY=your-super-secret-jwt-key-change-in-production
- DEBUG=true
- LOG_LEVEL=INFO
ports:

View File

@@ -19,7 +19,7 @@ from shared.auth.decorators import require_authentication, get_current_user, get
logger = structlog.get_logger()
router = APIRouter()
@router.post("/bakeries", response_model=TenantResponse)
@router.post("/tenants/register", response_model=TenantResponse)
@require_authentication
async def register_bakery(
bakery_data: BakeryRegistration,