Archived
修改了端点名
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user