Load environment variables from .env file in report_service to enhance configuration management.
This commit is contained in:
parent
40f554d190
commit
6d6e2e4d7c
@ -22,8 +22,13 @@ import uuid
|
||||
from contextlib import contextmanager
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv(Path(__file__).resolve().parent.parent / ".env")
|
||||
|
||||
from fastapi import Depends, FastAPI, Header, HTTPException, Request
|
||||
from fastapi.responses import JSONResponse, Response
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user