Skip to content

Commit 8ae92d0

Browse files
authored
Extend goto service for the AI era (#23)
1 parent c0d3983 commit 8ae92d0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

goto/app.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import os
2+
import random
3+
from flask import Flask, redirect
4+
5+
app = Flask(__name__)
6+
7+
LINKS = [
8+
"https://chat.com/",
9+
"https://gemini.google.com/app",
10+
"https://grok.com/",
11+
"https://claude.ai/",
12+
"https://perplexity.ai/",
13+
"https://meta.ai/prompt/"
14+
]
15+
16+
@app.route("/")
17+
def go():
18+
return redirect(random.choice(LINKS), code=302)
19+
20+
if __name__ == "__main__":
21+
port = int(os.environ.get('PORT', 5000))
22+
app.run(host='0.0.0.0', port=port)

goto/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flask

0 commit comments

Comments
 (0)