diff --git a/src/main/kotlin/com/stack/knowledge/domain/student/presentation/StudentWebAdapter.kt b/src/main/kotlin/com/stack/knowledge/domain/student/presentation/StudentWebAdapter.kt index 7201fb68..0bd7d6bc 100644 --- a/src/main/kotlin/com/stack/knowledge/domain/student/presentation/StudentWebAdapter.kt +++ b/src/main/kotlin/com/stack/knowledge/domain/student/presentation/StudentWebAdapter.kt @@ -27,7 +27,7 @@ class StudentWebAdapter( .let { ResponseEntity.ok(it) } @PostMapping("/image") - fun uploadImage(@RequestPart(name = "image") image: MultipartFile): ResponseEntity = + fun uploadImage(@RequestParam(name = "image") image: MultipartFile): ResponseEntity = uploadImageUseCase.execute(image) .let { ResponseEntity.ok(it) } } \ No newline at end of file diff --git a/src/main/kotlin/com/stack/knowledge/global/security/SecurityConfig.kt b/src/main/kotlin/com/stack/knowledge/global/security/SecurityConfig.kt index 68a2d570..5ecb923e 100644 --- a/src/main/kotlin/com/stack/knowledge/global/security/SecurityConfig.kt +++ b/src/main/kotlin/com/stack/knowledge/global/security/SecurityConfig.kt @@ -9,7 +9,6 @@ import org.springframework.context.annotation.Configuration import org.springframework.http.HttpMethod import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity -import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer import org.springframework.security.config.http.SessionCreationPolicy import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder import org.springframework.security.web.SecurityFilterChain @@ -26,13 +25,6 @@ class SecurityConfig( const val teacher = "TEACHER" } -// @Bean -// fun configure() = WebSecurityCustomizer { -// it.ignoring() -// .antMatchers(HttpMethod.POST, "/auth") -// .antMatchers(HttpMethod.PATCH, "/auth") -// } - @Bean protected fun filterChain(http: HttpSecurity): SecurityFilterChain = http