ejected react

This commit is contained in:
Malar Kannan
2017-08-09 12:18:47 +05:30
parent 016f5801df
commit a54d94f6ad
15 changed files with 1411 additions and 77 deletions

View File

@@ -12,16 +12,11 @@ def index():
return app.send_static_file('index.html')
@app.route('/api/addpost',methods=['POST'])
def walle_morph():
word = request.args.get('word','water')
pos_req = request.args.get('pos','N')
pos = pos_req if pos_req != '' else 'N';
return json.dumps(get_morph(word,pos))
@app.route('/api/xmlfiles')
def walle_xmlfiles():
xml_files = map(os.path.basename,glob.glob(xmlDir+'*.xml'))
return json.dumps(xml_files)
def addpost():
return 'Post Added'
@app.route('/api/listposts')
def listposts():
return 'Post Added'
# ====================