You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
482 B

from flask import request, jsonify, redirect, url_for, render_template
from app import app, db
# from app.models import User
@app.route('/api', methods=['POST'])
def process_request():
image = request.files.get('image')
text = request.form.get('text')
blocks = request.form.getlist('blocks')
# Process image, text, and blocks as needed
# log to flask log the blocks list.
app.logger.info(blocks)
app.logger.info(text)
return jsonify(success=True)