drop old db tables and remove old functions
This commit is contained in:
parent
4220ff285e
commit
74115b7e5b
3 changed files with 43 additions and 390 deletions
12
views_api.py
12
views_api.py
|
|
@ -32,7 +32,6 @@ from .crud import (
|
|||
get_all_user_wallet_settings,
|
||||
get_balance_assertion,
|
||||
get_balance_assertions,
|
||||
get_journal_entry,
|
||||
get_manual_payment_request,
|
||||
get_or_create_user_account,
|
||||
get_user_manual_payment_requests,
|
||||
|
|
@ -748,17 +747,6 @@ async def api_get_pending_entries(
|
|||
return pending_entries
|
||||
|
||||
|
||||
@castle_api_router.get("/api/v1/entries/{entry_id}")
|
||||
async def api_get_journal_entry(entry_id: str) -> JournalEntry:
|
||||
"""Get a specific journal entry"""
|
||||
entry = await get_journal_entry(entry_id)
|
||||
if not entry:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="Journal entry not found"
|
||||
)
|
||||
return entry
|
||||
|
||||
|
||||
@castle_api_router.post("/api/v1/entries", status_code=HTTPStatus.CREATED)
|
||||
async def api_create_journal_entry(
|
||||
data: CreateJournalEntry,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue