Dhrumit1314 commited on
Commit
088f6d4
1 Parent(s): bf6246c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -38,9 +38,13 @@ def extract_video_id(youtube_link):
38
  return None
39
 
40
 
41
- @app.route('/',methods=['GET'])
42
  def hello():
43
- h = "<h1>Hello World</h1>"
 
 
 
 
44
  return h
45
  @app.route('/get_humiliated',methods=['GET'])
46
  def hello2():
 
38
  return None
39
 
40
 
41
+ @app.route('/', methods=['GET'])
42
  def hello():
43
+ hostname = request.host
44
+ domain = request.url_root
45
+ user_agent = request.user_agent.string
46
+
47
+ h = f"<h1>Hello World</h1><p>Hostname: {hostname}</p><p>Domain: {domain}</p><p>User Agent: {user_agent}</p>"
48
  return h
49
  @app.route('/get_humiliated',methods=['GET'])
50
  def hello2():