fix(api): move chain body to form field
This commit is contained in:
parent
1de2a51db5
commit
bef50d89b1
|
@ -569,7 +569,8 @@ def upscale():
|
||||||
|
|
||||||
@app.route('/api/chain', methods=['POST'])
|
@app.route('/api/chain', methods=['POST'])
|
||||||
def chain():
|
def chain():
|
||||||
data = request.json
|
body = request.form.get('chain')
|
||||||
|
data = yaml.safe_load(body)
|
||||||
|
|
||||||
with open('./schema.yaml', 'r') as f:
|
with open('./schema.yaml', 'r') as f:
|
||||||
schema = yaml.safe_load(f.read())
|
schema = yaml.safe_load(f.read())
|
||||||
|
|
Loading…
Reference in New Issue