diff --git a/app/main/views.py b/app/main/views.py index 4ef9440..3ddd48e 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -25,7 +25,7 @@ def index(): @main.route('/count/', methods=['GET', 'POST']) -def api_v1(name: str): +def main(name: str): length = request.args.get('length', type=int) theme = request.args.get('theme', type=str) if not bool(length): diff --git a/app/templates/index.html b/app/templates/index.html index fe10d99..f2f9eb2 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -15,7 +15,7 @@ 服务端使用Flask开发没有使用异步编程
- 快速查看当前示例试用例 + 快速查看当前示例试用例
点击查看已部署好的调用示例