Skip to content

Commit 2577e10

Browse files
eerhardtradical
authored andcommitted
Fix the path in the python template (#12460)
Also use a link
1 parent 4f3155e commit 2577e10

File tree

1 file changed

+2
-2
lines changed
  • src/Aspire.ProjectTemplates/templates/aspire-py-starter/13.0/app

1 file changed

+2
-2
lines changed

src/Aspire.ProjectTemplates/templates/aspire-py-starter/13.0/app/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ def get_redis_client():
6060

6161

6262
if not os.path.exists("static"):
63-
@app.get("/")
63+
@app.get("/", response_class=fastapi.responses.HTMLResponse)
6464
async def root():
6565
"""Root endpoint."""
66-
return "API service is running. Navigate to /weatherforecast to see sample data."
66+
return "API service is running. Navigate to <a href='/api/weatherforecast'>/api/weatherforecast</a> to see sample data."
6767

6868
@app.get("/api/weatherforecast")
6969
//#if UseRedisCache

0 commit comments

Comments
 (0)