Skip to content

Commit

Permalink
fix : LoginMember 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
rivkode committed Nov 24, 2023
1 parent a652851 commit e63f3ae
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -19,8 +17,7 @@ public class RestaurantController {
private final RestaurantService restaurantService;

@GetMapping(value = "/{restaurantId}")
public ResponseEntity<RestaurantResponseDto> getRestaurant(@PathVariable("restaurantId") Long restaurantId,
@AuthenticationPrincipal LoginMember loginMember) {
public ResponseEntity<RestaurantResponseDto> getRestaurant(@PathVariable("restaurantId") Long restaurantId) {

return ResponseEntity.ok().body(restaurantService.getRestaurant(restaurantId));
}
Expand Down

0 comments on commit e63f3ae

Please sign in to comment.