-
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.
feat(dashboard): initial dashboard setup and file structure
- Add frontend directory structure - Add dashboard router - Prepare static file serving setup
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from fastapi import APIRouter | ||
from fastapi.responses import HTMLResponse | ||
from fastapi.staticfiles import StaticFiles | ||
|
||
router = APIRouter() | ||
|
||
@router.get("/dashboard", response_class=HTMLResponse) | ||
async def get_dashboard(): | ||
return """ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Healthcare Pipeline Dashboard</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.js"></script> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/static/dashboard.js"></script> | ||
</body> | ||
</html> | ||
""" |