1
0
Fork 0

fix(api): move chain body to form field

This commit is contained in:
Sean Sube 2023-02-04 14:18:44 -06:00
parent 1de2a51db5
commit bef50d89b1
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 1 deletions

View File

@ -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())