Current state before processing web_todo tasks
This commit is contained in:
parent
e3b752a2a7
commit
23c4e16ee2
@ -9,29 +9,30 @@ This module implements a comprehensive FastAPI application following the instruc
|
||||
- Security best practices
|
||||
"""
|
||||
|
||||
import hashlib
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
import hashlib
|
||||
import jwt
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Dict, Any, Optional, List
|
||||
from contextlib import asynccontextmanager
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
import jwt
|
||||
|
||||
# Add parent directory to path for imports
|
||||
current_dir = os.path.dirname(__file__)
|
||||
parent_dir = os.path.join(current_dir, '..')
|
||||
sys.path.insert(0, os.path.abspath(parent_dir))
|
||||
|
||||
from fastapi import FastAPI, HTTPException, Depends, Security, status, Request
|
||||
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
||||
import uvicorn
|
||||
from fastapi import Depends, FastAPI, HTTPException, Request, Security, status
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.responses import JSONResponse, HTMLResponse
|
||||
from fastapi.responses import HTMLResponse, JSONResponse
|
||||
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic_settings import BaseSettings
|
||||
import uvicorn
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
@ -279,6 +280,7 @@ app.add_exception_handler(Exception, global_exception_handler)
|
||||
|
||||
# Include API routers
|
||||
from .web.controllers.api.v1.anime import router as anime_router
|
||||
|
||||
app.include_router(anime_router)
|
||||
|
||||
# Authentication endpoints
|
||||
@ -563,7 +565,7 @@ async def get_system_config(current_user: Dict = Depends(get_current_user)) -> D
|
||||
|
||||
if __name__ == "__main__":
|
||||
import socket
|
||||
|
||||
|
||||
# Configure enhanced logging
|
||||
log_level = getattr(logging, settings.log_level.upper(), logging.INFO)
|
||||
logging.getLogger().setLevel(log_level)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user