summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 92e91b2..0772e33 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -70,3 +70,10 @@ def action_reboot():
payload = {'clients': list(ips)}
g.server.post('/reboot', payload)
return make_response("200 OK", 200)
+
+@app.route('/action/refresh', methods=['POST'])
+def action_refresh():
+ ips = parse_ips(request.form.to_dict())
+ payload = {'clients': list(ips)}
+ g.server.post('/refresh', payload)
+ return make_response("200 OK", 200)