Skip to content

Commit abf9ada

Browse files
initial app.py
1 parent 9a7581b commit abf9ada

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

app.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from flask import Flask, send_file, request
2+
3+
app = Flask(__name__)
4+
5+
6+
@app.route("/")
7+
def home():
8+
return "Welcome to my web server!"
9+
10+
11+
@app.route("/status")
12+
def home():
13+
return "OK"
14+
15+
16+
@app.route("/blog")
17+
def blog():
18+
return "Check out my latest blog post at example.com/blog."
19+
20+
21+
@app.route("/pricing")
22+
def pricing():
23+
return "Our pricing for web development starts at $50 per hour."
24+
25+
26+
@app.route("/contact")
27+
def contact():
28+
return "You can contact us at contact@example.com or info@example.com."
29+
30+
31+
@app.route("/chat")
32+
def contact():
33+
return "You can chat with live agent!"
34+
35+
36+
if __name__ == "__main__":
37+
app.run(debug=True, port=8080, host="0.0.0.0")
38+
39+

0 commit comments

Comments
 (0)