test #294
@@ -8,6 +8,7 @@ import kr.co.vividnext.sodalive.jwt.JwtFilter
 | 
				
			|||||||
import kr.co.vividnext.sodalive.jwt.TokenProvider
 | 
					import kr.co.vividnext.sodalive.jwt.TokenProvider
 | 
				
			||||||
import org.springframework.context.annotation.Bean
 | 
					import org.springframework.context.annotation.Bean
 | 
				
			||||||
import org.springframework.context.annotation.Configuration
 | 
					import org.springframework.context.annotation.Configuration
 | 
				
			||||||
 | 
					import org.springframework.http.HttpMethod
 | 
				
			||||||
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
 | 
					import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
 | 
				
			||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity
 | 
					import org.springframework.security.config.annotation.web.builders.HttpSecurity
 | 
				
			||||||
import org.springframework.security.config.annotation.web.builders.WebSecurity
 | 
					import org.springframework.security.config.annotation.web.builders.WebSecurity
 | 
				
			||||||
@@ -77,6 +78,8 @@ class SecurityConfig(
 | 
				
			|||||||
            .antMatchers("/v2/audio-content/main/home").permitAll()
 | 
					            .antMatchers("/v2/audio-content/main/home").permitAll()
 | 
				
			||||||
            .antMatchers("/v2/audio-content/main/home/popular-content-by-creator").permitAll()
 | 
					            .antMatchers("/v2/audio-content/main/home/popular-content-by-creator").permitAll()
 | 
				
			||||||
            .antMatchers("/v2/audio-content/main/home/content/ranking").permitAll()
 | 
					            .antMatchers("/v2/audio-content/main/home/content/ranking").permitAll()
 | 
				
			||||||
 | 
					            .antMatchers(HttpMethod.GET, "/faq").permitAll()
 | 
				
			||||||
 | 
					            .antMatchers(HttpMethod.GET, "/faq/category").permitAll()
 | 
				
			||||||
            .anyRequest().authenticated()
 | 
					            .anyRequest().authenticated()
 | 
				
			||||||
            .and()
 | 
					            .and()
 | 
				
			||||||
            .build()
 | 
					            .build()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ class FaqController(private val service: FaqService) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @DeleteMapping("/{id}")
 | 
					    @DeleteMapping("/{id}")
 | 
				
			||||||
    @PreAuthorize("hasRole('ADMIN')")
 | 
					    @PreAuthorize("hasRole('ADMIN')")
 | 
				
			||||||
    fun deleteCan(@PathVariable id: Long) = ApiResponse.ok(service.delete(id), "삭제되었습니다.")
 | 
					    fun deleteFaq(@PathVariable id: Long) = ApiResponse.ok(service.delete(id), "삭제되었습니다.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @GetMapping
 | 
					    @GetMapping
 | 
				
			||||||
    fun getFaqList(@RequestParam("category") category: String) = ApiResponse.ok(service.getFaqList(category))
 | 
					    fun getFaqList(@RequestParam("category") category: String) = ApiResponse.ok(service.getFaqList(category))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ class ServiceNoticeController(private val service: ServiceNoticeService) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @DeleteMapping("/{id}")
 | 
					    @DeleteMapping("/{id}")
 | 
				
			||||||
    @PreAuthorize("hasRole('ADMIN')")
 | 
					    @PreAuthorize("hasRole('ADMIN')")
 | 
				
			||||||
    fun deleteCan(@PathVariable id: Long) = ApiResponse.ok(service.delete(id), "삭제되었습니다.")
 | 
					    fun deleteNotice(@PathVariable id: Long) = ApiResponse.ok(service.delete(id), "삭제되었습니다.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @GetMapping
 | 
					    @GetMapping
 | 
				
			||||||
    fun getNoticeList(pageable: Pageable, timezone: String) = ApiResponse.ok(service.getNoticeList(pageable, timezone))
 | 
					    fun getNoticeList(pageable: Pageable, timezone: String) = ApiResponse.ok(service.getNoticeList(pageable, timezone))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user