This commit is contained in:
parent
5f99a590a2
commit
1e11dcd447
1 changed files with 5 additions and 1 deletions
|
@ -258,4 +258,8 @@ def relay():
|
|||
title = "gemini://" + url
|
||||
except:
|
||||
code += "<pre>" + traceback.format_exc() + "</pre>"
|
||||
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" href="/style.css"><title>{title}</title></head><body>{code}</body></html>'
|
||||
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" href="/style.css"><title>{title}</title></head><body>{code}</body></html>'
|
||||
if __name__ == '__main__':
|
||||
# run() method of Flask class runs the application
|
||||
# on the local development server.
|
||||
app.run(host='127.0.0.1',port=2009)
|
Loading…
Add table
Reference in a new issue