Update app.py
Browse files
app.py
CHANGED
@@ -95,14 +95,17 @@ def download_docker_image(image_name, tag='latest', destination='/tmp/docker-ima
|
|
95 |
print(f"Error downloading image: {str(e)}")
|
96 |
raise HTTPException(status_code=500, detail=f"Error downloading Docker image: {str(e)}")
|
97 |
|
|
|
|
|
|
|
98 |
@app.get("/", response_class=HTMLResponse)
|
99 |
async def read_root():
|
100 |
html_content = """
|
101 |
<html>
|
102 |
<head>
|
103 |
<title>Azeez's Help Desk</title>
|
104 |
-
<link href
|
105 |
-
<script src="
|
106 |
</head>
|
107 |
<body>
|
108 |
<h1>Welcome to Azeez's Help Desk :)</h1>
|
|
|
95 |
print(f"Error downloading image: {str(e)}")
|
96 |
raise HTTPException(status_code=500, detail=f"Error downloading Docker image: {str(e)}")
|
97 |
|
98 |
+
# Serve static files
|
99 |
+
app.mount("/static", StaticFiles(directory="static"), name="static")
|
100 |
+
|
101 |
@app.get("/", response_class=HTMLResponse)
|
102 |
async def read_root():
|
103 |
html_content = """
|
104 |
<html>
|
105 |
<head>
|
106 |
<title>Azeez's Help Desk</title>
|
107 |
+
<link href="/static/css/index.css" rel="stylesheet">
|
108 |
+
<script src="/static/js/index.js"></script>
|
109 |
</head>
|
110 |
<body>
|
111 |
<h1>Welcome to Azeez's Help Desk :)</h1>
|