Skip to content

Commit

Permalink
refactor: controller 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Jae-Yoon committed Nov 20, 2023
1 parent 9c3e6e6 commit f187e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/moabam/api/presentation/RoomController.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public RoomsHistoryResponse getJoinHistory(@CurrentMember AuthorizationMember au

@GetMapping
@ResponseStatus(HttpStatus.OK)
public SearchAllRoomsResponse searchAllRooms(@RequestParam(value = "type", required = false) RoomType roomType,
public SearchAllRoomsResponse searchAllRooms(@RequestParam(value = "roomType", required = false) RoomType roomType,
@RequestParam(value = "roomId", required = false) Long roomId) {

return roomSearchService.searchAllRooms(roomType, roomId);
Expand All @@ -128,7 +128,7 @@ public SearchAllRoomsResponse searchAllRooms(@RequestParam(value = "type", requi
@GetMapping("/search")
@ResponseStatus(HttpStatus.OK)
public SearchAllRoomsResponse search(@RequestParam(value = "keyword") String keyword,
@RequestParam(value = "type", required = false) RoomType roomType,
@RequestParam(value = "roomType", required = false) RoomType roomType,
@RequestParam(value = "roomId", required = false) Long roomId) {

return roomSearchService.search(keyword, roomType, roomId);
Expand Down

0 comments on commit f187e7b

Please sign in to comment.