reddit hot work (created template response)

This commit is contained in:
Xevion
2019-10-02 21:37:35 -05:00
parent 4733656846
commit 2a3efdbc62
4 changed files with 22 additions and 2 deletions

View File

@@ -37,8 +37,11 @@ def ftbhot_auth():
return 'hi bot guy'
@app.route('/ftbhot')
@app.route('/ftbhot/')
def ftbhot():
return 't'
@app.route('/time')
@app.route('/time/')
def time():
value = request.args.get('value')
if not value:

View File

@@ -0,0 +1,7 @@
{
"title": "",
"author_name": "",
"author_url": "",
"provider_name": "",
"provider_url": ""
}

View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<link type="application/json+oembed" href="https://xevion.dev/ftbhot/json" />
{% if description is defined %}<meta content="{{ description }}" property="og:description">{% endif %}
{% if banner_image is defined %}<meta content="{{ banner_image }}" property="og:image"><meta name="twitter:card" content="summary_large_image">{% endif %}
{% if color is defined %}<meta content="{{ color }}" name="theme-color">{% endif %}
</head>
<body>This page isn't meant to be viewed by users.</body>
</html>

View File

@@ -6,7 +6,7 @@ keys = json.load(open(os.path.join(basedir, 'keys.json'), 'r'))
class Config(object):
REDDIT_SECRET = keys['REDDIT_SECRET']
DISCORD_TOKEN = keys['DISCORD_TOKEN']
SECRET_KEY = keys['PASSWORD_HASH']
SECRET_KEY = keys['SECRET_KEY']
HIDDEN_NUMBER = keys['HIDDEN_NUMBER']
TEMPLATES_AUTO_RELOAD=True
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \