arbret/backend/routes
counterweight 2702b66fd2
Phase 1.3: Create price endpoint for users
Add GET /api/exchange/price endpoint:
- Available to regular users (BOOK_APPOINTMENT permission)
- Returns current BTC/EUR price with admin premium applied
- Uses cached price from PriceHistory if not stale
- Fetches fresh price from Bitfinex if needed
- Returns is_stale flag when price is older than 5 minutes
- Includes exchange configuration (min/max EUR, increment)
- Handles fetch failures gracefully (returns stale price with error)
2025-12-22 18:22:46 +01:00
..
__init__.py first implementation 2025-12-20 22:18:14 +01:00
audit.py Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
auth.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
availability.py refactor(backend): extract date range validation utilities 2025-12-22 00:02:41 +01:00
booking.py refactor(backend): clean up router registration pattern 2025-12-22 09:10:26 +01:00
exchange.py Phase 1.3: Create price endpoint for users 2025-12-22 18:22:46 +01:00
invites.py refactor(backend): standardize model-to-response conversion naming 2025-12-22 09:16:05 +01:00
meta.py refactor: derive Permission type from generated OpenAPI schema 2025-12-21 23:55:47 +01:00
profile.py refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission 2025-12-21 23:50:06 +01:00