Skip to content

Commit

Permalink
BUG :: permit
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Apr 2, 2024
1 parent 964aa36 commit ffaa11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package xquare.app.xquareinfra.domain.container.adapter

import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController
import xquare.app.xquareinfra.domain.container.adapter.dto.request.SyncContainerRequest
import xquare.app.xquareinfra.domain.container.application.port.`in`.SyncContainerUseCase
import xquare.app.xquareinfra.domain.container.domain.ContainerEnvironment

@RequestMapping("/container")
@RestController
class ContainerWebAdapter(
private val syncContainerUseCase: SyncContainerUseCase
) {
@PostMapping("/sync-container")
@PostMapping("/sync")
fun syncContainer(
@RequestParam("deploy_name", required = true)
deployName: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class RequestPermitConfig : SecurityConfigurerAdapter<DefaultSecurityFilterChain
.antMatchers("/team").permitAll()
.antMatchers("/auth/**").permitAll()
.antMatchers("/deploy/**/approve").permitAll()
.antMatchers(("/container/sync")).permitAll()
anyRequest().authenticated()
}
}
Expand Down

0 comments on commit ffaa11b

Please sign in to comment.