diff --git a/src/main/java/com/locationbasedfoodieservice/restaurant/controller/RestaurantController.java b/src/main/java/com/locationbasedfoodieservice/restaurant/controller/RestaurantController.java index bb599c8..027a0f2 100644 --- a/src/main/java/com/locationbasedfoodieservice/restaurant/controller/RestaurantController.java +++ b/src/main/java/com/locationbasedfoodieservice/restaurant/controller/RestaurantController.java @@ -1,11 +1,9 @@ package com.locationbasedfoodieservice.restaurant.controller; -import com.locationbasedfoodieservice.common.config.auth.LoginMember; import com.locationbasedfoodieservice.restaurant.dto.response.RestaurantResponseDto; import com.locationbasedfoodieservice.restaurant.service.RestaurantService; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; -import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; @@ -19,8 +17,7 @@ public class RestaurantController { private final RestaurantService restaurantService; @GetMapping(value = "/{restaurantId}") - public ResponseEntity getRestaurant(@PathVariable("restaurantId") Long restaurantId, - @AuthenticationPrincipal LoginMember loginMember) { + public ResponseEntity getRestaurant(@PathVariable("restaurantId") Long restaurantId) { return ResponseEntity.ok().body(restaurantService.getRestaurant(restaurantId)); }