fix: dev: 优化Flask语法 & 修正Flask找不到templates文件夹的问题

1.
优化Flask语法,使用flask自带的jsonify进行json回复;使用flask自带的render_template进行html模版回复;
简化Flask书写语法
2. 将server文件夹更名flask_templates,在Flask初始化时将模版文件夹路径指向此文件夹
This commit is contained in:
Jolly23
2017-04-20 12:41:43 +08:00
parent 51967cacbd
commit c06667a448
4 changed files with 27 additions and 37 deletions
@@ -0,0 +1,7 @@
<!doctype html>
<title>Upload new File</title>
<h1>Upload new File</h1>
<form action="upload" method=post enctype=multipart/form-data>
<p><input type=file name=file>
<input type=submit value=Upload>
</form>