File tree Expand file tree Collapse file tree
src/main/java/org/runnect/server/course/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import org .runnect .server .course .service .CourseService ;
2020import org .runnect .server .external .aws .S3Service ;
2121import org .springframework .http .HttpStatus ;
22+ import org .springframework .http .MediaType ;
2223import org .springframework .validation .BindingResult ;
2324import org .springframework .web .bind .annotation .GetMapping ;
2425import org .springframework .web .bind .annotation .ModelAttribute ;
@@ -40,7 +41,7 @@ public class CourseController {
4041 private final S3Service s3Service ;
4142 private final CourseService courseService ;
4243
43- @ PostMapping
44+ @ PostMapping ( consumes = MediaType . MULTIPART_FORM_DATA_VALUE , produces = MediaType . APPLICATION_JSON_VALUE )
4445 @ ResponseStatus (HttpStatus .CREATED )
4546 public ApiResponseDto <CourseCreateResponseDto > createCourse (
4647 @ UserId Long userId ,
You can’t perform that action at this time.
0 commit comments