From 26c0cd76dff728aee9bb24aa23a62258eb76a1d8 Mon Sep 17 00:00:00 2001 From: lixin Date: Mon, 13 Nov 2023 17:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.py b/index.py index a392531..06a44c3 100644 --- a/index.py +++ b/index.py @@ -204,6 +204,17 @@ def export_reports(): return Response(mod, content_type='application/json') +@app.route('/get_page_data', methods=['GET', 'POST']) +def get_page_data(): + """ + 定时获取可用空间页面数据 + :return: + """ + mod = check_methods() + if mod: + return Response(mod, content_type='application/json') + + @app.route('/', methods=['GET', 'POST']) def MT_index(): """ -- 2.20.1