#!/usr/bin/python
from flask import request
from app import app


@app.route('/xiaoxin/<action>', methods=['GET', 'POST'])
def xiaoxin(action):
    #return "Failed"
    print request.json
    if request != None:
        print request.json
    print "=========================="
    #if action =="config":
    #    return xiaoxin_config(request.json)
    return "ok"
    #return "Hello, World !"+action

def xiaoxin_config(content):
    return content;
    #pass
@@ -157,24 +157,52 @@
 %22Failed%22%0A   
+ ret=%22==-=-=-=-=-=-=-=%22%0A   #
  print reque
@@ -245,36 +245,49 @@
     
-print request.json%0A    print
+ret+= str(request.data).lower()%0A    ret+=
  %22==
@@ -399,12 +399,11 @@
 urn 
-%22ok%22
+ret
 %0A   

add post