Arranging imports

This commit is contained in:
Pascal Scheiben
2025-09-18 13:49:54 +02:00
parent d5c2ee172f
commit 0a14e9abf2
7 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
from src.example.router import router as example_router
from .aggregate_router import router as aggregate_router
__all__ = ["example_router", "aggregate_router"]

View File

@@ -1,7 +1,9 @@
# contains the router for the aggregates endpoint
from fastapi import APIRouter, Query
from enum import Enum
from typing import List
from fastapi import APIRouter, Query
from .aggregate_schema import AggregateSchema
from .aggregate_service import get_aggregates

View File

@@ -1,5 +1,6 @@
# contains the business logic for aggregates
from typing import List
from .aggregate_schema import AggregateSchema

View File

@@ -1,7 +1,9 @@
from fastapi import APIRouter
from .schema import ConfigSchema, ConfigReturnSchema
import logging
from fastapi import APIRouter
from .schema import ConfigReturnSchema, ConfigSchema
logger = logging.getLogger("uvicorn")
router = APIRouter(tags=["config"])

View File

@@ -1,5 +1,6 @@
# contains the router for the aggregate endpoint
from fastapi import APIRouter
from .schema import ExampleSchema
router = APIRouter(tags=["aggregate"])

View File

@@ -1,8 +1,10 @@
from src.service import load_config
from fastapi import FastAPI
import logging
from fastapi import FastAPI
from src.aggregate import aggregate_router
from src.config import config_router
from src.service import load_config
logger = logging.getLogger("uvicorn")

View File

@@ -1,6 +1,7 @@
from dotenv import dotenv_values
import logging
from dotenv import dotenv_values
from src.schema import ConfigSchema
logger = logging.getLogger("uvicorn")