Added static backend
This commit is contained in:
15
backend.py
Normal file
15
backend.py
Normal file
@ -0,0 +1,15 @@
|
||||
"""
|
||||
Imports all required blueprints and initalises the app.
|
||||
Runs in debug mode if ran directly.
|
||||
"""
|
||||
|
||||
import flask
|
||||
|
||||
from static import staticBP
|
||||
|
||||
app = flask.Flask(__name__, static_folder='./www/')
|
||||
app.register_blueprint(staticBP)
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Running in debug mode')
|
||||
app.run(debug=True)
|
||||
Reference in New Issue
Block a user