chore: import MCTF services
- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from backend.app.db import operations
|
||||
from backend.app.api.schemas import ReceiptOpen
|
||||
|
||||
router = APIRouter(prefix="/api/receipts", tags=["receipts"])
|
||||
|
||||
@router.get("")
|
||||
async def receipts():
|
||||
return await operations.receipts()
|
||||
|
||||
@router.post("/{receipt_id}/open")
|
||||
async def receipt_open(receipt_id: int, body: ReceiptOpen):
|
||||
return await operations.open_receipt(receipt_id, body.calculation_id)
|
||||
Reference in new issue
Block a user