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",
|
||||
version="1.0.0",
|
||||
description="Generic document management service with S3 storage and PDF field discovery",
|
||||
openapi_url="/openapi",
|
||||
docs_url="/docs",
|
||||
redoc_url="/redoc"
|
||||
openapi_url="/api/openapi",
|
||||
docs_url="/api/docs",
|
||||
redoc_url="/api/redoc"
|
||||
)
|
||||
|
||||
# Add auth middleware
|
||||
@@ -23,7 +23,7 @@ app.add_middleware(AuthMiddleware)
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["http://localhost:3000"],
|
||||
allow_origins=["*"],
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user