posts posting

This commit is contained in:
Stepan Usatiuk
2023-12-16 18:32:35 +01:00
parent 22aa0585ea
commit 3cf1d03df4
19 changed files with 368 additions and 28 deletions

View File

@@ -44,7 +44,7 @@ public class PersonController {
return PersonMapper.makeDto(found.get());
}
@GetMapping(path = "")
@GetMapping
public PersonTo getSelf(Principal principal) throws UserNotFoundException {
Optional<Person> found = personService.readById(principal.getName());