prefix urls with api
All checks were successful
Build and Publish / build-release (push) Successful in 44s
All checks were successful
Build and Publish / build-release (push) Successful in 44s
This commit is contained in:
@@ -13,9 +13,9 @@ app = FastAPI(
|
|||||||
title="Document Service",
|
title="Document Service",
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
description="Generic document management service with S3 storage and PDF field discovery",
|
description="Generic document management service with S3 storage and PDF field discovery",
|
||||||
openapi_url="/openapi",
|
openapi_url="/api/openapi",
|
||||||
docs_url="/docs",
|
docs_url="/api/docs",
|
||||||
redoc_url="/redoc"
|
redoc_url="/api/redoc"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add auth middleware
|
# Add auth middleware
|
||||||
@@ -23,7 +23,7 @@ app.add_middleware(AuthMiddleware)
|
|||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000"],
|
allow_origins=["*"],
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"]
|
allow_headers=["*"]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user