fix security configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dmitriy.churmeev
2026-03-29 13:07:03 +03:00
parent 94ddfd86c6
commit b16af2238f

View File

@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController @RestController
class TestController { class TestController {
@PreAuthorize("hasRole('ADMIN')")
@GetMapping("/test") @GetMapping("/test")
fun test(): String { fun test(): String {
return "Test page" return "Test page"