File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments