Skip to content

Commit

Permalink
feat(dashboard): initial dashboard setup and file structure
Browse files Browse the repository at this point in the history
- Add frontend directory structure
- Add dashboard router
- Prepare static file serving setup
  • Loading branch information
paulcyi committed Oct 26, 2024
1 parent 48218f3 commit 24719d9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/routers/dashboard.py
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>
"""

0 comments on commit 24719d9

Please sign in to comment.