correct import

This commit is contained in:
vincent 2019-05-08 14:14:55 +02:00
parent 2256435c3f
commit 8680792300
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from flask import Blueprint, jsonify, request,make_response,redirect,url_for,render_template
from chainetv.Jsonfile import JSONfile
from chainetv import emission
from .Jsonfile import JSONfile
from . import emission
data= JSONfile("chaine.json")

View File

@ -7,7 +7,7 @@ def create_app(app_name=__name__):
app.config.from_object('chainetv.config.BaseConfig')
#app.wsgi_app = ReverseProxied(app.wsgi_app)
CORS(app)
from chainetv.api import api
from .api import api
app.register_blueprint(api, url_prefix="/api/v1")
@app.route('/')
@app.route('/<path:path>')