We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3155e commit 2577e10Copy full SHA for 2577e10
src/Aspire.ProjectTemplates/templates/aspire-py-starter/13.0/app/app.py
@@ -60,10 +60,10 @@ def get_redis_client():
60
61
62
if not os.path.exists("static"):
63
- @app.get("/")
+ @app.get("/", response_class=fastapi.responses.HTMLResponse)
64
async def root():
65
"""Root endpoint."""
66
- return "API service is running. Navigate to /weatherforecast to see sample data."
+ return "API service is running. Navigate to <a href='/api/weatherforecast'>/api/weatherforecast</a> to see sample data."
67
68
@app.get("/api/weatherforecast")
69
//#if UseRedisCache
0 commit comments