Update server.py

This commit is contained in:
Nova Cat 2025-01-13 21:31:01 -08:00
parent 2eeed2e0ce
commit d94bd6e3cc

View file

@ -7,26 +7,7 @@ from hypercorn.asyncio import serve
app = Flask(__name__)
@app.route("/")
def root():
return """
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/style.css">
<title>Gem2Browser</title>
</head>
<body>
<center>
<h1>Gem2Browser</h1>
<form action="/gem">
<p>gemini://<input class="input" value="geminiprotocol.net" type="text" name="gemini"></p><br>
<input type="submit" class="go" value="Go!">
</form><br>
<p><a href="https://git.swee.codes/swee/Gem2Browser">Check out the project</a></p>
</center>
</body>
</html>
"""
return send_file("home.html")
@app.route("/external.png")
def external():
return send_file("external.png")