Spaces:
Running
Running
Update app.py
Browse files
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():
|