ejected react
This commit is contained in:
15
app/views.py
15
app/views.py
@@ -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'
|
||||
|
||||
# ====================
|
||||
|
||||
Reference in New Issue
Block a user