mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
19 lines
498 B
Python
19 lines
498 B
Python
from fastapi import APIRouter, Depends
|
|
from backend.app.dependencies import validate_token
|
|
|
|
router = APIRouter(
|
|
prefix="/portfolio",
|
|
tags=["portfolio"],
|
|
dependencies=[Depends(validate_token)],
|
|
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",
|
|
"data": "some data"
|
|
}
|