izuemon commited on
Commit
6b97a27
·
verified ·
1 Parent(s): 1eb9a22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -4,6 +4,12 @@ import requests
4
 
5
  app = Flask(__name__)
6
 
 
 
 
 
 
 
7
 
8
  @app.route("/channel-io-managers", methods=["GET"])
9
  def get_managers():
 
4
 
5
  app = Flask(__name__)
6
 
7
+ @app.route("/")
8
+ def index():
9
+ ip = request.remote_addr # クライアントIP取得
10
+ print(f"アクセスIP: {ip}") # ログ表示
11
+
12
+ return redirect("https://www.google.com")
13
 
14
  @app.route("/channel-io-managers", methods=["GET"])
15
  def get_managers():