diff options
author | 2024-08-19 04:22:37 +0100 | |
---|---|---|
committer | 2024-08-19 04:22:37 +0100 | |
commit | b1e53cf483670a43920c6e03c138c15b48ebbd0c (patch) | |
tree | 97c258f8a33dcbe21bca59e382e405e57fdfc6ed /thallium-backend | |
parent | Relock dependencies (diff) |
Rename current voucher route
Diffstat (limited to 'thallium-backend')
-rw-r--r-- | thallium-backend/src/routes/vouchers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-backend/src/routes/vouchers.py b/thallium-backend/src/routes/vouchers.py index 26770e9..a0740a5 100644 --- a/thallium-backend/src/routes/vouchers.py +++ b/thallium-backend/src/routes/vouchers.py @@ -16,7 +16,7 @@ log = logging.getLogger(__name__) @authenticated_router.get("/me") -async def get_vouchers(request: Request, db: DBSession) -> Voucher | None: +async def get_current_voucher(request: Request, db: DBSession) -> Voucher | None: """Get the voucher for the currently authenticated voucher id.""" stmt = select(DBVoucher).where(DBVoucher.id == request.state.voucher_id) res = await db.execute(stmt) |