connected fe and gateway
This commit is contained in:
@@ -49,6 +49,8 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
|||||||
if (file && onUploadStart) {
|
if (file && onUploadStart) {
|
||||||
onUploadStart(file);
|
onUploadStart(file);
|
||||||
}
|
}
|
||||||
|
// Reset the input so the same file can be selected again
|
||||||
|
e.target.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"""FastAPI app factory."""
|
"""FastAPI app factory."""
|
||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
from app import __version__
|
from app import __version__
|
||||||
from app.routers import documents, edits, health, render
|
from app.routers import documents, edits, health, render
|
||||||
@@ -13,6 +14,14 @@ def create_app() -> FastAPI:
|
|||||||
description="Auth, metadata, storage, and job-queue gateway over the C++ PDF engine.",
|
description="Auth, metadata, storage, and job-queue gateway over the C++ PDF engine.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
app.add_middleware(
|
||||||
|
CORSMiddleware,
|
||||||
|
allow_origins=["*"],
|
||||||
|
allow_credentials=True,
|
||||||
|
allow_methods=["*"],
|
||||||
|
allow_headers=["*"],
|
||||||
|
)
|
||||||
|
|
||||||
app.include_router(health.router)
|
app.include_router(health.router)
|
||||||
app.include_router(documents.router)
|
app.include_router(documents.router)
|
||||||
app.include_router(render.router)
|
app.include_router(render.router)
|
||||||
|
|||||||
Reference in New Issue
Block a user