From 255016ab1c5a1c41b4a685fd38ff8615ddfe757f Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Fri, 15 Apr 2022 23:29:00 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=E4=B8=BA=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API/web_api.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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文件下载请求,面对大量请求时非常吃服务器内存,容易崩,慎用。)