-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
39 lines (22 loc) · 673 Bytes
/
app.py
File metadata and controls
39 lines (22 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from flask import Flask, send_file, request
app = Flask(__name__)
@app.route("/")
def home():
return "Welcome to my web server!"
@app.route("/status")
def home():
return "OK"
@app.route("/blog")
def blog():
return "Check out my latest blog post at example.com/blog."
@app.route("/pricing")
def pricing():
return "Our pricing for web development starts at $50 per hour."
@app.route("/contact")
def contact():
return "You can contact us at contact@example.com or info@example.com."
@app.route("/chat")
def contact():
return "You can chat with live agent!"
if __name__ == "__main__":
app.run(debug=True, port=8080, host="0.0.0.0")