migration-tools/0076-detection-storage-interface.patch

39 lines
969 B
Diff
Raw Normal View History

2024-11-07 18:14:06 +08:00
From 6b30dd600fa78f0ee91762b8ca450a96e1ede0b0 Mon Sep 17 00:00:00 2001
From: lixin <lixinb@uniontech.com>
Date: Mon, 13 Nov 2023 14:06:04 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E5=82=A8=E7=A9=BA=E9=97=B4=E6=A3=80?=
=?UTF-8?q?=E6=B5=8B=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 d9a564b..6b3b3d7 100644
--- a/index.py
+++ b/index.py
@@ -180,6 +180,17 @@ def get_repo_arch_info():
return Response(mod, content_type='application/json')
+@app.route('/get_storage_num', methods=['GET', 'POST'])
+def get_storage_num():
+ """
+ 获取可用空间足够和不足数量
+ :return:
+ """
+ mod = check_methods()
+ if mod:
+ return Response(mod, content_type='application/json')
+
+
@app.route('/', methods=['GET', 'POST'])
def MT_index():
"""
--
2.20.1