修改路由路径

This commit is contained in:
MarkusJoe
2022-03-05 17:01:51 +08:00
parent b5401ac501
commit 3f841f193a
1 file changed
+2 -2
+2 -2
View File
@@ -40,8 +40,8 @@ def requests_log() -> None:
logger.info(f'{request.remote_addr} {request.method} {request.base_url}')
@app.route('/get/<string:name>', methods=['GET', 'POST']) # 允许 GET 和 POST 方法
def main(name) -> Response or str:
@app.route('/count/<string:name>', methods=['GET', 'POST']) # 允许 GET 和 POST 方法
def main(name: str) -> Response or str:
"""
API 页面函数
:return: