Fully functional implementation of the foreignKey

This commit is contained in:
2025-01-21 18:14:31 +01:00
committed by ewandor
parent 829d16c1c4
commit 38c5a69130
8 changed files with 41 additions and 33 deletions

View File

@@ -12,8 +12,8 @@ router = APIRouter()
@router.post("")
def create_account(account: AccountCreate, session: SessionDep, current_user=Depends(get_current_user)) -> AccountRead:
Account.create(account, session)
return account
result = Account.create(account, session)
return result
@router.get("")
def read_accounts(session: SessionDep, current_user=Depends(get_current_user)) -> Page[AccountRead]: