Fix SeriesApp: Add missing class variable and clean up unused imports
This commit is contained in:
@@ -36,8 +36,10 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
# Import our custom middleware
|
||||
from src.server.web.middleware.fastapi_auth_middleware import AuthMiddleware
|
||||
from src.server.web.middleware.fastapi_logging_middleware import (
|
||||
EnhancedLoggingMiddleware,
|
||||
)
|
||||
from src.server.web.middleware.fastapi_validation_middleware import ValidationMiddleware
|
||||
from src.server.web.middleware.fastapi_logging_middleware import EnhancedLoggingMiddleware
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
|
||||
@@ -6,8 +6,9 @@ using FastAPI patterns and dependency injection.
|
||||
"""
|
||||
|
||||
import logging
|
||||
from typing import Callable, Optional, Dict, Any
|
||||
from fastapi import Request, Response, HTTPException, status
|
||||
from typing import Any, Callable, Dict, Optional
|
||||
|
||||
from fastapi import HTTPException, Request, Response, status
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
|
||||
|
||||
@@ -12,10 +12,11 @@ import json
|
||||
import logging
|
||||
import time
|
||||
import traceback
|
||||
from typing import Callable, Dict, Any, Optional
|
||||
from fastapi import Request, Response, HTTPException, status
|
||||
from fastapi.responses import JSONResponse
|
||||
from datetime import datetime, timezone
|
||||
from typing import Any, Callable, Dict, Optional
|
||||
|
||||
from fastapi import HTTPException, Request, Response, status
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
|
||||
class EnhancedLoggingMiddleware:
|
||||
|
||||
@@ -5,13 +5,14 @@ This module provides middleware for handling request validation logic
|
||||
using FastAPI patterns and dependency injection.
|
||||
"""
|
||||
|
||||
import html
|
||||
import json
|
||||
import logging
|
||||
from typing import Callable, Dict, Any, Optional, Union
|
||||
from fastapi import Request, Response, HTTPException, status
|
||||
from fastapi.responses import JSONResponse
|
||||
import html
|
||||
import re
|
||||
from typing import Any, Callable, Dict, Optional, Union
|
||||
|
||||
from fastapi import HTTPException, Request, Response, status
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
|
||||
class ValidationMiddleware:
|
||||
|
||||
Reference in New Issue
Block a user