Fix imports

This commit is contained in:
Urtzi Alfaro
2025-07-18 14:41:39 +02:00
parent a469f0c01d
commit 4073222888
30 changed files with 123 additions and 119 deletions

View File

@@ -7,7 +7,7 @@ Authentication API routes - Enhanced with proper metrics access
from fastapi import APIRouter, Depends, HTTPException, status, Request
from sqlalchemy.ext.asyncio import AsyncSession
import logging
import structlog
from app.core.database import get_db
from app.schemas.auth import (
@@ -18,7 +18,7 @@ from app.services.auth_service import AuthService
from app.core.security import security_manager
from shared.monitoring.decorators import track_execution_time, count_calls
logger = logging.getLogger(__name__)
logger = structlog.get_logger()
router = APIRouter()
def get_metrics_collector(request: Request):

View File

@@ -5,7 +5,7 @@ User management API routes
from fastapi import APIRouter, Depends, HTTPException, status
from sqlalchemy.ext.asyncio import AsyncSession
from typing import List
import logging
import structlog
from app.core.database import get_db
from app.schemas.auth import UserResponse, PasswordChangeRequest
@@ -13,7 +13,7 @@ from app.services.user_service import UserService
from app.core.auth import get_current_user
from app.models.users import User
logger = logging.getLogger(__name__)
logger = structlog.get_logger()
router = APIRouter()
@router.get("/me", response_model=UserResponse)