From 3924d0eff66f629af84d748343dd26a2c9f87ebd Mon Sep 17 00:00:00 2001 From: Marko Budiselic Date: Sun, 11 May 2025 09:19:57 +0200 Subject: [PATCH] Extend goto service for the AI era --- goto/app.py | 22 ++++++++++++++++++++++ goto/requirements.txt | 1 + 2 files changed, 23 insertions(+) create mode 100644 goto/app.py create mode 100644 goto/requirements.txt diff --git a/goto/app.py b/goto/app.py new file mode 100644 index 0000000..9840b19 --- /dev/null +++ b/goto/app.py @@ -0,0 +1,22 @@ +import os +import random +from flask import Flask, redirect + +app = Flask(__name__) + +LINKS = [ + "https://chat.com/", + "https://gemini.google.com/app", + "https://grok.com/", + "https://claude.ai/", + "https://perplexity.ai/", + "https://meta.ai/prompt/" +] + +@app.route("/") +def go(): + return redirect(random.choice(LINKS), code=302) + +if __name__ == "__main__": + port = int(os.environ.get('PORT', 5000)) + app.run(host='0.0.0.0', port=port) diff --git a/goto/requirements.txt b/goto/requirements.txt new file mode 100644 index 0000000..7e10602 --- /dev/null +++ b/goto/requirements.txt @@ -0,0 +1 @@ +flask