- Docker Deployment Fixes: - Switch base images to docker.m.daocloud.io to resolve registry 401 errors - Add Postgres and Redis services to docker-compose.traefik.yml - Fix frontend build: replace missing icons (Globe->Location, Chart->TrendCharts) - Fix frontend build: resolve pnpm CI/TTY issues and frozen lockfile errors - Add missing backend dependencies (sqlalchemy, psycopg2, redis-py, celery, docker-py) in pixi.toml - Ensure database tables are created on startup (lifespan event) - Backend Internationalization (i18n): - Add backend/app/core/i18n.py for locale handling - Update API endpoints (jobs, tasks, uploads, results) to return localized messages - Support 'Accept-Language' header (en/zh) - Documentation: - Update DOCKER_DEPLOYMENT.md with new architecture and troubleshooting - Update AGENTS.md with latest stack details and deployment steps - Update @fix_plan.md status Co-Authored-By: Claude <noreply@anthropic.com>
10 lines
247 B
Python
10 lines
247 B
Python
"""文件上传 API"""
|
|
from fastapi import APIRouter, Depends
|
|
from ...core.i18n import I18n, get_i18n
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/")
|
|
async def upload_info(i18n: I18n = Depends(get_i18n)):
|
|
return {"message": i18n.t("upload_endpoint")}
|