diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index a3e0b46e..b4d6e320 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -108,77 +108,79 @@ + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/flask.html b/docs/flask.html index c9a19dd8..8a1397f7 100644 --- a/docs/flask.html +++ b/docs/flask.html @@ -218,21 +218,21 @@

创建蓝图Bp2

from flask import Blueprint, abort, jsonify
 
-# 定义Bp2,并定义url前缀为/vedio
-Bp2 = Blueprint('vedioBlue', __name__, template_folder='templates', url_prefix='/vedio')
+# 定义Bp2,并定义url前缀为/video
+Bp2 = Blueprint('videoBlue', __name__, template_folder='templates', url_prefix='/video')
 
 
-@Bp2.route('/getvedio')
-def getVedio():
+@Bp2.route('/getvideo')
+def getvideo():
     try:
-        return jsonify(name="vedio", size="100GB")
+        return jsonify(name="video", size="100GB")
     except Exception as e:
         abort(e)
 

在flask app中引用蓝图Bp1和Bp2

from flask import Flask, jsonify
 from lantu.img import Bp1
-from lantu.vedio import Bp2
+from lantu.video import Bp2
 
 app = Flask(__name__)
 
@@ -256,8 +256,8 @@
 curl http://127.0.0.1:5000/img/getimg
 >> {"name": "img", "size": "100KB"}
 
-curl http://127.0.0.1:5000/vedio/getvedio
->> {"name": "vedio", "size": "100GB"}
+curl http://127.0.0.1:5000/video/getvideo
+>> {"name": "video", "size": "100GB"}
 
diff --git a/index.html b/index.html index f30c8c58..9867dc6a 100644 --- a/index.html +++ b/index.html @@ -1171,7 +1171,7 @@

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+