Skip to content

Commit 3a68d91

Browse files
committed
feat: tambah route /about
1 parent 9dd6dff commit 3a68d91

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import os
21
from flask import Flask
32
app = Flask(__name__)
43

54
@app.route("/")
6-
def main():
7-
return "Welcome!"
5+
def home():
6+
return "Hello, World!"
87

9-
@app.route('/how are you')
10-
def hello():
11-
return 'I am good, how about you?'
8+
@app.route("/about")
9+
def about():
10+
return "Ini halaman About"
1211

1312
if __name__ == "__main__":
1413
app.run(host="0.0.0.0", port=8080)

0 commit comments

Comments
 (0)