Moving example files back to its place

This commit is contained in:
Pascal Scheiben
2025-09-18 10:39:36 +02:00
parent 615d290773
commit 73a42aae3b
6 changed files with 1 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
from .router import router as example_router
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,2 +0,0 @@
# contains a constant definition
FOO: int = 42

View File

@@ -1,10 +0,0 @@
# contains the router for the aggregate endpoint
from fastapi import APIRouter
from .schema import ExampleSchema
router = APIRouter(tags=["aggregate"])
@router.get("/example")
async def example_endpoint() -> ExampleSchema:
return ExampleSchema(example_field="foo", another_field=42)

View File

@@ -1,7 +0,0 @@
# contains the schema definitions for the aggregate service
from pydantic import BaseModel
class ExampleSchema(BaseModel):
example_field: str
another_field: int

View File

@@ -1,3 +0,0 @@
# contains the business logic for the aggregate service
async def example_service() -> str:
return "This is an aggregate service"