Replaced all tabs with spaces

This commit is contained in:
Hanz727 2025-11-14 19:36:29 +01:00
commit ee0d2ce427
9 changed files with 247 additions and 247 deletions

View file

@ -30,23 +30,23 @@ import commons.Person;
@RequestMapping("/api/people")
public class PersonListingController {
private List<Person> people = new LinkedList<>();
private List<Person> people = new LinkedList<>();
public PersonListingController() {
people.add(new Person("Mickey", "Mouse"));
people.add(new Person("Donald", "Duck"));
}
public PersonListingController() {
people.add(new Person("Mickey", "Mouse"));
people.add(new Person("Donald", "Duck"));
}
@GetMapping("/")
public List<Person> list() {
return people;
}
@GetMapping("/")
public List<Person> list() {
return people;
}
@PostMapping("/")
public List<Person> add(@RequestBody Person p) {
if (!people.contains(p)) {
people.add(p);
}
return people;
}
@PostMapping("/")
public List<Person> add(@RequestBody Person p) {
if (!people.contains(p)) {
people.add(p);
}
return people;
}
}