From aa3abebd804129f2eff361a1b4f21d0c04c61cfd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 19 Dec 2018 17:13:40 +0100 Subject: GUI: Add adapt step to DPD --- python/gui/api.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/gui/api.py') diff --git a/python/gui/api.py b/python/gui/api.py index bff224e..42c89c9 100755 --- a/python/gui/api.py +++ b/python/gui/api.py @@ -105,6 +105,15 @@ class API: cherrypy.response.status = 400 return send_error("POST only") + @cherrypy.expose + @cherrypy.tools.json_out() + def dpd_adapt(self, **kwargs): + if cherrypy.request.method == 'POST': + return self._wrap_dpd("adapt") + else: + cherrypy.response.status = 400 + return send_error("POST only") + @cherrypy.expose @cherrypy.tools.json_out() def dpd_reset(self, **kwargs): -- cgit v1.2.3