fs-lawrisk/lawrisk/api
Codex Agent fe911592e0 fix: resolve server deployment image 404 errors and enhance admin UI
- Add dedicated image serving API endpoint (/admin/images/<filename>) with security whitelist
- Update image paths from /static/ to /fs-ai-asistant/api/workflow/lawrisk/admin/images/
- Add permit import sample file download endpoint
- Enhance import wizard UI with template/sample preview section
- Add risk count column to unbound permits table
- Filter out "不涉及" (not applicable) theme from theme list
- Improve permit import UX with better visual organization

This ensures images load correctly in server deployments (nginx, gunicorn) by using
the same API prefix as other admin resources, avoiding static file routing issues.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-04 13:51:20 +08:00
..
__init__.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
auth.py chore: reorganize directory structure and clean up root directory 2025-12-20 11:25:34 +08:00
v1.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
v2.py fix: resolve server deployment image 404 errors and enhance admin UI 2026-02-04 13:51:20 +08:00