Removed useless subdomain stuff, NGINX should do it
This commit is contained in:
@@ -40,7 +40,7 @@ load_dotenv()
|
||||
#@@@@&. (@@@@@@@@@ ** """
|
||||
|
||||
|
||||
app = Flask(__name__, subdomain_matching=True)
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
def generate_iq():
|
||||
@@ -67,10 +67,4 @@ def index():
|
||||
data = json.loads(file.read())
|
||||
cols = data['cols']
|
||||
projects = data['projects']
|
||||
return render_template('index.html', random_number=generate_iq(), projects=projects,
|
||||
texlink=os.getenv('TEXURL'))
|
||||
|
||||
|
||||
@app.route('/', subdomain='tex')
|
||||
def texindex():
|
||||
return render_template('texindex.html')
|
||||
return render_template('index.html', random_number=generate_iq(), projects=projects)
|
||||
|
Reference in New Issue
Block a user