implement vuex et authent #2
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user