Deploy prepare
This commit is contained in:
@@ -42,7 +42,10 @@ async def lifespan(app: FastAPI):
|
|||||||
logger.info("Application shutdown")
|
logger.info("Application shutdown")
|
||||||
|
|
||||||
# Create the main app
|
# Create the main app
|
||||||
app = FastAPI(lifespan=lifespan)
|
app = FastAPI(
|
||||||
|
lifespan=lifespan,
|
||||||
|
root_path="/membership" # Configure for serving under /membership path
|
||||||
|
)
|
||||||
|
|
||||||
# Create a router with the /api prefix
|
# Create a router with the /api prefix
|
||||||
api_router = APIRouter(prefix="/api")
|
api_router = APIRouter(prefix="/api")
|
||||||
|
|||||||
Reference in New Issue
Block a user