Skip to content

Commit

Permalink
Merge pull request #58 from LIKELION-TEAM4-HACKATHON/edit-securityConfig
Browse files Browse the repository at this point in the history
refactor: securityConfig 에 api 수정
  • Loading branch information
oosedus authored Jul 26, 2024
2 parents ae3dd75 + bf7b779 commit c2f9a11
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/likelion/MZConnent/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ public class SecurityConfig {

//권한별 url
private final String[] adminUrl = {"/admin/**"};
// 아무나 접속 가능한 것
private final String[] permitAllUrl = {"/error",
"/api/auth/login", "/api/auth/logout", // 회원
"/api/categories/culture", "/api/cultures", // 문화
"/api/clubs", "/api/clubs/*/join", // 동아리
"/api/auth/login", // 회원
"/api/categories/culture", "/api/cultures", "/api/cultures/*", // 문화
"/api/reviews", // 후기
"/api/clubs/*",
"/api/categories/region", "/api/clubs/list",
"/api/main",
"/swagger", "/swagger-ui.html", "/swagger-ui/**", "/api-docs", "/api-docs/**", "/v3/api-docs/**", //swagger
};
// 로그인 안한 사용자만 접속 가능한 것
private final String[] anonymousUrl = {
"/api/auth/signup", "/api/categories/region", "/api/clubs/*", "/api/clubs/list"
"/api/auth/signup"
};


Expand Down

0 comments on commit c2f9a11

Please sign in to comment.