Update server.py
This commit is contained in:
parent
2eeed2e0ce
commit
d94bd6e3cc
1 changed files with 1 additions and 20 deletions
21
server.py
21
server.py
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue