修改了端点名

This commit is contained in:
MarkusJoe
2022-04-10 17:52:40 +08:00
parent bf9b3fac1f
commit 23fe43f4fa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ def index():
@main.route('/count/<string:name>', 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):
+1 -1
View File
@@ -15,7 +15,7 @@
<i>服务端使用Flask开发没有使用异步编程</i>
</div>
<div class="current_deployment_test">
<i><a href="{{ url_for('main.api_v1', name='test-example') }}">快速查看当前示例试用例</a></i>
<i><a href="{{ url_for('main.main', name='test-example') }}">快速查看当前示例试用例</a></i>
</div>
<div class="remote_deployment_test">
<i><a href="https://requestcounter.herokuapp.com/count/test-example">点击查看已部署好的调用示例</a></i>