Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wf4java committed Jan 16, 2024
1 parent 198496f commit 0d4f782
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public void delete(@RequestBody @Valid LinkDeleteRequestDTO linkDeleteRequestDTO
linkService.deleteById(linkDeleteRequestDTO.getId(), principal.getId());
}

@GetMapping("/get_my")
public List<LinkResponseDTO> getMyLinks(@RequestBody @Valid LinkGetMyRequestDTO linkGetMyRequestDTO, BindingResult bindingResult, @AuthenticationPrincipal Person principal) {
@GetMapping("/my")
public List<LinkResponseDTO> getMyLinks(@Valid LinkGetMyRequestDTO linkGetMyRequestDTO, BindingResult bindingResult, @AuthenticationPrincipal Person principal) {
if(bindingResult.hasErrors())
throw new BadRequestException(bindingResult);

Expand All @@ -60,8 +60,8 @@ public List<LinkResponseDTO> getMyLinks(@RequestBody @Valid LinkGetMyRequestDTO
}


@GetMapping("/get_by_short_link")
public LinkResponseDTO getByShortLink(@RequestBody @Valid LinkGetByShortLinkRequestDTO linkGetByShortLinkRequestDTO, BindingResult bindingResult) {
@GetMapping("/by_short_link")
public LinkResponseDTO getByShortLink(@Valid LinkGetByShortLinkRequestDTO linkGetByShortLinkRequestDTO, BindingResult bindingResult) {
if(bindingResult.hasErrors())
throw new BadRequestException(bindingResult);

Expand Down

0 comments on commit 0d4f782

Please sign in to comment.