second html test
Browse files
app.py
CHANGED
@@ -3,11 +3,6 @@ from fastapi.responses import HTMLResponse
|
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
-
@app.get("/")
|
7 |
-
def greet_json():
|
8 |
-
return {"Hello": "World!"}
|
9 |
-
|
10 |
-
|
11 |
@app.get("/", response_class=HTMLResponse)
|
12 |
async def serve_html():
|
13 |
# Read the HTML file content
|
|
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
@app.get("/", response_class=HTMLResponse)
|
7 |
async def serve_html():
|
8 |
# Read the HTML file content
|