Skip to content

Commit 8b13f1f

Browse files
surajitsurajit
authored andcommitted
modify root url
1 parent d5933b4 commit 8b13f1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
@app.get("/")
26-
def read_root(request: Request):
26+
def home(request: Request):
2727
return templates.TemplateResponse(
28-
"charge.html", {"request": request, "name": "surajit"}
28+
"charge.html", {"request": request, "message": "Welcome to Property Management API"}
2929
)

templates/charge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<body>
33
<p>
4-
Hello {{ name }}
4+
Hello {{ message }}
55
</p>
66
</body>
77
</html>

0 commit comments

Comments
 (0)