Remove legacy vanilla frontend, clarify web/ vs web-ui/ in CLAUDE.md
- Delete web/static/index.html and design-system.css (replaced by Next.js) - Remove GET / HTML route and StaticFiles import from app.py - CLAUDE.md: document that web/ = FastAPI API, web-ui/ = Next.js frontend Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
web/app.py
11
web/app.py
@@ -22,7 +22,6 @@ import zipfile
|
||||
|
||||
from fastapi import FastAPI, File, Form, HTTPException, UploadFile
|
||||
from fastapi.responses import FileResponse, StreamingResponse
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from pydantic import BaseModel
|
||||
|
||||
import asyncpg
|
||||
@@ -63,20 +62,12 @@ async def lifespan(app: FastAPI):
|
||||
|
||||
app = FastAPI(title="העלאת מסמכים משפטיים", lifespan=lifespan)
|
||||
|
||||
STATIC_DIR = Path(__file__).parent / "static"
|
||||
|
||||
|
||||
# ── API Endpoints ──────────────────────────────────────────────────
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def index():
|
||||
return FileResponse(STATIC_DIR / "index.html")
|
||||
|
||||
|
||||
@app.get("/design-system.css")
|
||||
async def design_system_css():
|
||||
return FileResponse(STATIC_DIR / "design-system.css", media_type="text/css")
|
||||
return {"status": "ok", "frontend": "https://legal-ai-next.nautilus.marcusgroup.org"}
|
||||
|
||||
|
||||
@app.post("/api/upload")
|
||||
|
||||
Reference in New Issue
Block a user