DmitrMakeev
commited on
Commit
•
856645f
1
Parent(s):
f34c200
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,39 @@ def online_api():
|
|
57 |
|
58 |
|
59 |
|
|
|
|
|
|
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
@app.route("/api", methods=['GET'])
|
62 |
def handle_api():
|
63 |
response = api()
|
|
|
57 |
|
58 |
|
59 |
|
60 |
+
@app.route('/settings', methods=['GET'])
|
61 |
+
def settings():
|
62 |
+
return render_template('settings.html')
|
63 |
|
64 |
+
|
65 |
+
@app.route('/settings_api', methods=['GET'])
|
66 |
+
def settings_api():
|
67 |
+
return jsonify(dey=globs.dey,
|
68 |
+
wek=globs.wek,
|
69 |
+
ph=globs.ph,
|
70 |
+
ec=globs.ec,
|
71 |
+
tS=globs.tS,
|
72 |
+
tA=globs.tA,
|
73 |
+
hDm=globs.hDm,
|
74 |
+
sVen=globs.sVen,
|
75 |
+
rFul=globs.rFul,
|
76 |
+
rLi=globs.rLi,
|
77 |
+
rWat=globs.rWat,
|
78 |
+
rRas=globs.rRas,
|
79 |
+
rPH=globs.rPH,
|
80 |
+
rEC=globs.rEC,
|
81 |
+
rSl=globs.rSl,
|
82 |
+
rLe=globs.rLe,
|
83 |
+
alW=globs.alW
|
84 |
+
)
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
@app.route("/api", methods=['GET'])
|
94 |
def handle_api():
|
95 |
response = api()
|