Created base flask instance and moved static templates into correct location so they can be loaded using Jinja
This commit is contained in:
5
web/__init__.py
Normal file
5
web/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
from flask import Blueprint
|
||||
|
||||
blueprint = Blueprint('endpoints', __name__)
|
||||
|
||||
from . import endpoints
|
9
web/endpoints.py
Normal file
9
web/endpoints.py
Normal file
@ -0,0 +1,9 @@
|
||||
from . import blueprint
|
||||
from flask import render_template
|
||||
|
||||
'''
|
||||
Function responsible for displaying the main landing page of the site
|
||||
'''
|
||||
@blueprint.route('/')
|
||||
def welcome_page():
|
||||
return render_template('index.html')
|
Reference in New Issue
Block a user