import flask
from marshmallow.fields import Email
from app import app
from flask import json, render_template, request, session, Response,jsonify,redirect,url_for,flash,make_response
from flask_login import login_required,login_user,logout_user,current_user
from app.models import Order, Order_Detail
from app.forms import forms
from app.database import mysql_db
import datetime

@app.route('/test', methods=['GET','POST'])
def test():
    if request.method == "POST":
        products = request.json.get("products")
        return str(len(products))
    return 'method get'

4c83d7bd2562edc74b9f702c74658e5b4be4775a
<mask token>

<mask token>


@app.route('/test', methods=['GET', 'POST'])
def test():
    if request.method == 'POST':
        products = request.json.get('products')
        return str(len(products))
    return 'method get'

import flask
from marshmallow.fields import Email
from app import app
from flask import json, render_template, request, session, Response, jsonify, redirect, url_for, flash, make_response
from flask_login import login_required, login_user, logout_user, current_user
from app.models import Order, Order_Detail
from app.forms import forms
from app.database import mysql_db
import datetime


@app.route('/test', methods=['GET', 'POST'])
def test():
    if request.method == 'POST':
        products = request.json.get('products')
        return str(len(products))
    return 'method get'

import flask
from marshmallow.fields import Email
from app import app
from flask import json, render_template, request, session, Response,jsonify,redirect,url_for,flash,make_response
from flask_login import login_required,login_user,logout_user,current_user
from app.models import Order, Order_Detail
from app.forms import forms
from app.database import mysql_db
import datetime

@app.route('/test', methods=['GET','POST'])
def test():
    if request.method == "POST":
        products = request.json.get("products")
        return str(len(products))
    return 'method get'
