returns the station as JSON now if everything is OK

This commit is contained in:
Michael 2019-04-13 21:34:57 +02:00
parent 749fcd119a
commit ff7ddde5ee

View File

@ -232,7 +232,7 @@ public class Controller {
if (cache.getStationen().get(i - 1).equals(aktuelleStation)) { if (cache.getStationen().get(i - 1).equals(aktuelleStation)) {
bearbeitet.setAktuelleStation(station); bearbeitet.setAktuelleStation(station);
return ResponseEntity.status(200).body("OK"); return ResponseEntity.status(200).body(new Gson().toJson(station));
} else { } else {
return ResponseEntity.status(400).body("The scanned station isn´t the correct following station"); return ResponseEntity.status(400).body("The scanned station isn´t the correct following station");
} }