Skip to content

Commit ecd26fe

Browse files
committed
refactor :: endpoint 수정
1 parent ecdfb89 commit ecd26fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/mindway/server/v2/domain/order/presentation/OrdersController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class OrdersController {
1515
private final BookRequestService bookRequestService;
1616

17-
@PostMapping("/list")
17+
@PostMapping()
1818
public ResponseEntity<Void> bookRequest
1919
(@RequestParam BookType type, @RequestBody @Valid OrderRequest bookRequest) {
2020
bookRequestService.execute(type, bookRequest);

src/main/java/com/mindway/server/v2/global/security/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
5454
.requestMatchers(HttpMethod.GET, "/api/v2/my").authenticated()
5555

5656
// orders
57-
.requestMatchers(HttpMethod.POST, "/api/v2/order/{type}").authenticated()
57+
.requestMatchers(HttpMethod.POST, "/api/v2/order").authenticated()
5858

5959
.anyRequest().authenticated()
6060
)

0 commit comments

Comments
 (0)