Skip to content

Commit

Permalink
Set available access to role from (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlee1703 authored Oct 19, 2023
2 parents 54d07c2 + fa933b8 commit d515126
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
Expand Down Expand Up @@ -189,6 +190,7 @@ public ResponseEntity<Message> test(HttpServletRequest request, @RequestBody OCR
}

@PostMapping("/{voucherId}/share")
@PreAuthorize("hasRole('ROLE_USER')")
@Operation(summary = "Voucher 공유 요청 메서드", description = "클라이언트에서 요청한 기프티콘을 공유하기 위한 메서드입니다. 공유 정보를 생성하고 저장합니다.")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "기프티콘 공유 요청 성공"),
Expand Down

0 comments on commit d515126

Please sign in to comment.