Skip to content

Commit

Permalink
fix: error status codes (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli authored Nov 1, 2024
1 parent 51b114c commit a5985d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class WebSecurityConfig {
authorize("/swagger-ui/**", permitAll)
authorize("/v3/api-docs/**", permitAll)
authorize("/actuator/health/**", permitAll)
authorize("/error", authenticated)
authorize("/api/**", hasRole("admin"))
authorize("/**", denyAll)
}
Expand Down

0 comments on commit a5985d6

Please sign in to comment.