-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4be59a
commit bef129d
Showing
10 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,17 @@ | |
from curfu.version import __version__ as curfu_version | ||
|
||
fastapi_app = FastAPI( | ||
title="Fusion Curation API", | ||
description="Provide data functions to support [VICC Fusion Curation interface](fusion-builder.cancervariants.org/).", | ||
contact={ | ||
"name": "Alex H. Wagner", | ||
"email": "[email protected]", | ||
"url": "https://www.nationwidechildrens.org/specialties/institute-for-genomic-medicine/research-labs/wagner-lab", | ||
}, | ||
license={ | ||
"name": "MIT", | ||
"url": "https://github.com/cancervariants/fusion-curation/blob/main/LICENSE", | ||
}, | ||
version=curfu_version, | ||
swagger_ui_parameters={"tryItOutEnabled": True}, | ||
docs_url="/docs", | ||
|
@@ -63,7 +74,7 @@ def serve_react_app(app: FastAPI) -> FastAPI: | |
) | ||
templates = Jinja2Templates(directory=BUILD_DIR.as_posix()) | ||
|
||
@app.get("/{full_path:path}") | ||
@app.get("/{full_path:path}", include_in_schema=False) | ||
async def serve_react_app(request: Request, full_path: str) -> TemplateResponse: | ||
"""Add arbitrary path support to FastAPI service. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters