fix: POST url : /lightSensor

This commit is contained in:
Jean-Remy Hok 2022-01-07 09:53:04 +01:00
parent c6015edd35
commit b32d4bc6b4

View file

@ -27,7 +27,7 @@ public class LightSensorController {
return sensorValues.replace(id, value);
}
@PostMapping("/addSensor")
@PostMapping("/")
public int addSensor() {
sensorValues.put(currentMaxId, null);
return currentMaxId++;