39 lines
963 B
Diff
39 lines
963 B
Diff
|
|
From bdf226b949fd997e71d9375ecc5f71553d3bf005 Mon Sep 17 00:00:00 2001
|
||
|
|
From: lixin <lixinb@uniontech.com>
|
||
|
|
Date: Mon, 13 Nov 2023 10:55:37 +0800
|
||
|
|
Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96repo=E4=BF=A1=E6=81=AF?=
|
||
|
|
=?UTF-8?q?=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 4ca7b38..8629ae3 100644
|
||
|
|
--- a/index.py
|
||
|
|
+++ b/index.py
|
||
|
|
@@ -168,6 +168,17 @@ def get_environment_data():
|
||
|
|
return Response(mod, content_type='application/json')
|
||
|
|
|
||
|
|
|
||
|
|
+@app.route('/get_repo_arch_info', methods=['GET', 'POST'])
|
||
|
|
+def get_repo_arch_info():
|
||
|
|
+ """
|
||
|
|
+ 获取软件仓库架构和系统信息
|
||
|
|
+ :return:
|
||
|
|
+ """
|
||
|
|
+ mod = check_methods()
|
||
|
|
+ if mod:
|
||
|
|
+ return Response(mod, content_type='application/json')
|
||
|
|
+
|
||
|
|
+
|
||
|
|
@app.route('/', methods=['GET', 'POST'])
|
||
|
|
def MT_index():
|
||
|
|
"""
|
||
|
|
--
|
||
|
|
2.20.1
|
||
|
|
|