Adding base logic for config handling. Adding example config to root
This commit is contained in:
@@ -4,6 +4,7 @@ from .schema import ExampleSchema
|
||||
|
||||
router = APIRouter(tags=["example"])
|
||||
|
||||
|
||||
@router.get("/example")
|
||||
async def example_endpoint() -> ExampleSchema:
|
||||
return ExampleSchema(example_field="foo", another_field=42)
|
||||
return ExampleSchema(example_field="foo", another_field=42)
|
||||
|
||||
Reference in New Issue
Block a user