correct path dist

This commit is contained in:
vincent 2019-04-29 17:03:09 +02:00
parent 8fc67cccce
commit 686ec23582

View File

@ -3,12 +3,13 @@ from flask_cors import CORS
#from ReverseProxied import ReverseProxied #from ReverseProxied import ReverseProxied
def create_app(app_name=__name__): def create_app(app_name=__name__):
app=Flask(__name__, static_folder= "./dist/static",template_folder="./dist") app=Flask(__name__, static_folder= "../dist/static",template_folder="../dist")
app.config.from_object('chainetv.config.BaseConfig') app.config.from_object('chainetv.config.BaseConfig')
#app.wsgi_app = ReverseProxied(app.wsgi_app) #app.wsgi_app = ReverseProxied(app.wsgi_app)
CORS(app) CORS(app)
from chainetv.api import api from chainetv.api import api
app.register_blueprint(api, url_prefix="/api/v1") app.register_blueprint(api, url_prefix="/api/v1")
@app.route('/')
@app.route('/<path:path>') @app.route('/<path:path>')
def index(path): def index(path):
return render_template('index.html') return render_template('index.html')