Skip to content

Commit

Permalink
Update TestBulletinController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
practise30 committed Aug 21, 2024
1 parent 2a0b3a3 commit 5724439
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@
import lombok.RequiredArgsConstructor;
import nbdream.bulletin.dto.request.BulletinTestDto;
import nbdream.bulletin.service.TestBulletinService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import java.awt.*;

@RestController
@RequiredArgsConstructor
public class TestBulletinController {

private final TestBulletinService service;

@PostMapping("/test")
@PostMapping(value = "/test", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public void test(@RequestPart BulletinTestDto dto) {
service.uploadTestBulletin(dto);
}
Expand Down

0 comments on commit 5724439

Please sign in to comment.