-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
31 lines (24 loc) · 1.03 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from flask import Flask, redirect, render_template
STATIC_FOLDER = 'templates/assets'
app = Flask(__name__,
static_folder=STATIC_FOLDER)
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
@app.route('/terms_and_conditions', methods=['GET'])
def terms_and_conditions():
return render_template('terms_and_conditions.html')
@app.route('/privacy_policy', methods=['GET'])
def privacy_policy():
return render_template('privacy_policy.html')
@app.route('/github', methods=['GET'])
def github():
return redirect('https://github.com/smrfeld/the-masked-manual-python')
@app.route('/ios_app_store', methods=['GET'])
def ios_app_store():
# return render_template('index.html')
return redirect("https://apps.apple.com/us/app/the-masked-manual/id1542536599")
@app.route('/data_latest', methods=['GET'])
def data_latest():
return redirect("https://storage.googleapis.com/the-masked-manual-data/data_latest.txt")
# return send_file('data_latest.txt', attachment_filename='data_latest.txt')