Fix tenant register
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user