authentificatio implementation #3
@ -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")
|
||||
|
||||
|
||||
|
@ -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>')
|
||||
|
Loading…
Reference in New Issue
Block a user