feat(backend): implement step 9 — REST controllers, DTOs, EntityService, SecurityConfig (permit-all)

This commit is contained in:
2026-03-26 19:01:37 -03:00
parent 47704c2ef2
commit 731c80a2bc
8 changed files with 305 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package com.condado.newsletter.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.web.SecurityFilterChain
/**
* Security configuration — Step 9: permits all requests.
* Will be updated in Step 10 with JWT authentication.
*/
@Configuration
@EnableWebSecurity
class SecurityConfig {
@Bean
fun filterChain(http: HttpSecurity): SecurityFilterChain {
http
.csrf { it.disable() }
.authorizeHttpRequests { it.anyRequest().permitAll() }
return http.build()
}
}