initial commit for GitHub
This commit is contained in:
20
server/app/routers/bio.py
Normal file
20
server/app/routers/bio.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.controller import controller
|
||||
from app.model.bio import Bio, ProfessionalService
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/bio",
|
||||
tags=["bio"],
|
||||
responses={404: {"description": "Not found"}},
|
||||
)
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def bio() -> Bio:
|
||||
return await controller.get_bio()
|
||||
|
||||
|
||||
@router.get("/services")
|
||||
async def services() -> list[ProfessionalService]:
|
||||
return await controller.get_all_professional_services()
|
||||
Reference in New Issue
Block a user