Text Extraction Done, UI Fixes Done, Extracted Template Layout Saved in DB
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user