dc6d38c128
- 删除 auth.py 与 deps.py,各路由去除 get_current_user 依赖 - collection.py 更名为 materials.py,冻结链路(ozon/publish/shops/categories)移入 legacy/ - 扩展默认生图服务端口并入 8800 并自动迁移旧配置,水印默认文案改为 Panda Store - 新增 docs/v2.1/backend-structure.md 后端结构盘点文档
14 lines
241 B
Python
14 lines
241 B
Python
"""汇率路由。"""
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from services.fx import get_fx_rate
|
|
|
|
router = APIRouter(prefix="/api/fx", tags=["fx"])
|
|
|
|
|
|
@router.get("")
|
|
async def fx():
|
|
return await get_fx_rate()
|