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.

17 lines
482 B

2 years ago
from flask import request, jsonify, redirect, url_for, render_template
from app import app, db
# from app.models import User
2 years ago
@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
2 years ago
# log to flask log the blocks list.
app.logger.info(blocks)
app.logger.info(text)
2 years ago
return jsonify(success=True)