mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 12:09:04 -06:00
reddit hot work (created template response)
This commit is contained in:
@@ -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:
|
||||
|
||||
7
app/static/reddit_hot.json
Normal file
7
app/static/reddit_hot.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"title": "",
|
||||
"author_name": "",
|
||||
"author_url": "",
|
||||
"provider_name": "",
|
||||
"provider_url": ""
|
||||
}
|
||||
10
app/templates/reddit_hot.html
Normal file
10
app/templates/reddit_hot.html
Normal 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>
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user