Update app/main.py
This commit is contained in:
parent
1fc3e9ffa1
commit
d8ef3694aa
1 changed files with 7 additions and 0 deletions
|
|
@ -25,3 +25,10 @@ def get_accounts():
|
||||||
accounts = crud.get_accounts(db)
|
accounts = crud.get_accounts(db)
|
||||||
db.close()
|
db.close()
|
||||||
return accounts
|
return accounts
|
||||||
|
|
||||||
|
@app.get("/transactions")
|
||||||
|
def get_accounts():
|
||||||
|
db = SessionLocal()
|
||||||
|
transactions = crud.get_transactions(db)
|
||||||
|
db.close()
|
||||||
|
return transactions
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue