|
|
@ -62,10 +62,15 @@ SYS_STORE = CONFIG['store']
|
|
|
|
# return render_template('donate.html',**args)
|
|
|
|
# return render_template('donate.html',**args)
|
|
|
|
@app.route("/")
|
|
|
|
@app.route("/")
|
|
|
|
def index():
|
|
|
|
def index():
|
|
|
|
|
|
|
|
if 'default' in CONFIG:
|
|
|
|
|
|
|
|
id = CONFIG['default']['id']
|
|
|
|
|
|
|
|
return get_plans_ui(id)
|
|
|
|
|
|
|
|
headers = {"content-type":"application/json"}
|
|
|
|
mystore = store.factory.instance(name='music')
|
|
|
|
mystore = store.factory.instance(name='music')
|
|
|
|
products = mystore.get.products()
|
|
|
|
products = mystore.get.products()
|
|
|
|
args = {"context":CONTEXT,"products":products}
|
|
|
|
args = {"context":CONTEXT,"products":products}
|
|
|
|
return json.dumps(products),"content-type:application/json"
|
|
|
|
return json.dumps(products),headers
|
|
|
|
|
|
|
|
|
|
|
|
# return render_template("index.html",**args)
|
|
|
|
# return render_template("index.html",**args)
|
|
|
|
@app.route("/json/<id>")
|
|
|
|
@app.route("/json/<id>")
|
|
|
|
def get_plans_json(id):
|
|
|
|
def get_plans_json(id):
|
|
|
|