diff --git a/API/web_api.py b/API/web_api.py index f7b57af..dba77d6 100644 --- a/API/web_api.py +++ b/API/web_api.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/04/06 +# @Update: 2022/04/15 # @Function: # 创建一个接受提交参数的Flask应用程序。 # 将scraper.py返回的内容以JSON格式返回。 @@ -87,6 +87,15 @@ def webapi(): return jsonify(status='failed', reason='url value cannot be empty', function='api()', value=content) +@app.route("/ios", methods=["POST", "GET"]) +def ios_shortcut(): + # 用于检查快捷指令更新 + return jsonify(version='3.0', + update='2022/04/15', + link='https://www.icloud.com/shortcuts/126820d2783748d1bdec95a223a02639', + note='为快捷指令增加了检查更新的功能') + + @app.route("/video", methods=["POST", "GET"]) def download_video(): # 用于返回视频下载请求(返回MP4文件下载请求,面对大量请求时非常吃服务器内存,容易崩,慎用。)