Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

상품 등록 API의 Content-Type 수정 #267

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public RestResponse<List<AdminGetRefundResponseDto>> getRefunds(AdminGetRefundRe
@PostMapping("/products")
@Operation(summary = "상품 생성 요청 [어드민 ONLY]", description = "어드민 권한의 관리자의 상품 생성 요청을 처리합니다.")
public RestResponse<AdminProductResponseDto> addProducts(
@Valid @RequestBody AdminProductRequestDto adminProductRequestDto
@Valid AdminProductRequestDto adminProductRequestDto
) {
productCommandService.addProduct(adminProductRequestDto);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void settingRequestAuthorization(HttpSecurity http) throws Exception {
// 상품 도메인
.requestMatchers(HttpMethod.GET, "/api/products/**").permitAll()
// 관리자 도메인
.requestMatchers(HttpMethod.GET, "/api/admin/**").hasAuthority(UserRole.ADMIN.getAuthority())
.requestMatchers("/api/admin/**").hasAuthority(UserRole.ADMIN.getAuthority())
// health 체크
.requestMatchers(HttpMethod.GET, "/actuator/**").permitAll()
.requestMatchers(HttpMethod.GET, "/actuator").permitAll()
Expand Down
Loading