Skip to content

Commit

Permalink
Merge pull request #51 from najasin/develop
Browse files Browse the repository at this point in the history
test: production 환경에 ddl-auto 설정
  • Loading branch information
lcomment authored Aug 22, 2023
2 parents 051c14b + 4962f0e commit e61c4be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -17,7 +18,7 @@
import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("/api/characterItems")
@RequestMapping("/api/{userType}/characterItems")
@RequiredArgsConstructor
public class CharacterController {

Expand All @@ -26,7 +27,7 @@ public class CharacterController {
private String baseImage;

@GetMapping
public ResponseEntity<ApiResponse<CharacterItemsResponse>> getCharacterItems() {
public ResponseEntity<ApiResponse<CharacterItemsResponse>> getCharacterItems(@PathVariable String userType) {
CharacterItemsParam characterItems = characterService.findAllItems();
return ResponseEntity.ok(createSuccessWithData(
CharacterItemResponse.FIND_ALL_ITEMS_SUCCESS.getMsg(),
Expand Down

0 comments on commit e61c4be

Please sign in to comment.