From 0f64c9b2c35439659d137d9196812d60e23c27d9 Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Fri, 23 Apr 2021 14:38:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E5=85=AC=E5=85=B1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B7=BB=E5=8A=A0=E5=88=9D=E5=A7=8B=E5=8C=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/simulation/SimulationCommonController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/SimulationCommonController.java b/src/main/java/club/joylink/rtss/simulation/SimulationCommonController.java index 571764b56..6c11b34d0 100644 --- a/src/main/java/club/joylink/rtss/simulation/SimulationCommonController.java +++ b/src/main/java/club/joylink/rtss/simulation/SimulationCommonController.java @@ -38,6 +38,12 @@ public class SimulationCommonController { this.simulationManager.start(id); } + @PutMapping("/{id}/init") + public void init(@PathVariable String id) { + this.simulationManager.init(id); + } + + @PutMapping("/{id}/updateSpeed/{speed}") public void updateSpeed(@PathVariable String id, @PathVariable int speed) { this.simulationManager.updateSpeed(id, speed);