Text Extraction Done, UI Fixes Done, Extracted Template Layout Saved in DB

This commit is contained in:
2026-07-12 14:24:17 +05:30
parent 3163bb213e
commit 3d6614f408
79 changed files with 3139 additions and 81 deletions

View File

@@ -48,6 +48,10 @@ from database import get_db, Email, Vendor, Document
from scheduler import start_scheduler, stop_scheduler
from mail_service import fetch_and_store_emails
# Import the new routers
from api.templates import router as templates_router
from api.documents import router as documents_router
# Lifespan for Scheduler
@asynccontextmanager
async def lifespan(app: FastAPI):
@@ -59,6 +63,10 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan)
# Include Routers
app.include_router(templates_router)
app.include_router(documents_router)
# CORS configuration
origins = [
"http://localhost",