Skip to content

Commit

Permalink
Merge pull request #98 from Travalue/develop
Browse files Browse the repository at this point in the history
[Feat]: content-type 추가
  • Loading branch information
dev-Crayon authored Oct 26, 2023
2 parents 2d024ab + 55e6f80 commit 6ddf9ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

Expand All @@ -38,7 +39,7 @@ public class TravelController {

@Auth
@ApiOperation("Traveller 생성 API")
@PostMapping("traveller")
@PostMapping(value = "traveller", consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
@ResponseStatus(HttpStatus.CREATED)
public ApiResponse create(@UserId Long userId, @ModelAttribute @Valid final TravellerRequestDto request) {
final String thumbnailImagePath = s3Service.uploadImage(request.getThumbnail(), "traveller");
Expand Down

0 comments on commit 6ddf9ec

Please sign in to comment.