Add example model, route and logic for development testing and boilerplate
This commit is contained in:
parent
f1cd1e8bfa
commit
cac002e3e6
11 changed files with 80 additions and 0 deletions
15
app/routers/example_route.py
Normal file
15
app/routers/example_route.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from fastapi import APIRouter
|
||||
|
||||
from app.logic.example_logic import get_example_message
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/example",
|
||||
tags=["Example"]
|
||||
)
|
||||
|
||||
@router.get("/")
|
||||
def get_example():
|
||||
|
||||
return(
|
||||
get_example_message()
|
||||
)
|
||||
Loading…
Reference in a new issue