Model/backend/app/portfolio/router.py
Khalim Conn-Kowlessar 271fb9de3a Setting up jwt auth
2023-07-06 11:52:38 +01:00

16 lines
365 B
Python

from fastapi import APIRouter
router = APIRouter(
prefix="/portfolio",
tags=["portfolio"],
responses={404: {"description": "Not found"}}
)
@router.get("/{portfolio_id}")
async def get_portfolio(portfolio_id: int):
return {
"portfolio_id": portfolio_id,
"name": "My Portfolio",
"description": "This is my portfolio",
}