From f37e828a4a80292373b50faf07f61f8ef889459d Mon Sep 17 00:00:00 2001 From: Jwhyee Date: Wed, 28 Sep 2022 01:42:23 +0900 Subject: [PATCH] [REFACTOR] #176 - Post GetMaaping url change --- src/main/java/com/matdongsan/infra/SecurityConfig.java | 2 +- .../java/com/matdongsan/web/controller/post/PostController.java | 2 +- src/main/resources/templates/fragments/footer.html | 2 +- src/main/resources/templates/index.html | 2 +- src/main/resources/templates/place/place-detail.html | 2 +- src/main/resources/templates/post/post-detail.html | 2 +- src/main/resources/templates/post/posts-list.html | 2 +- src/main/resources/templates/profile/profile-main.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/matdongsan/infra/SecurityConfig.java b/src/main/java/com/matdongsan/infra/SecurityConfig.java index 89040fd1..550a2651 100644 --- a/src/main/java/com/matdongsan/infra/SecurityConfig.java +++ b/src/main/java/com/matdongsan/infra/SecurityConfig.java @@ -24,7 +24,7 @@ protected void configure(HttpSecurity http) throws Exception { // 카카오 맵 외부 요청을 받 .csrf().disable() // /api/place 로 보내지지가 않아서 설정 .authorizeRequests() - .mvcMatchers("/login", "/signup", "/account/idCheck", "/account/kakao/**", "/", "/place", "/place/map", "/posts", "/post/**").permitAll() // 누구나 접근 가능 + .mvcMatchers("/login", "/signup", "/account/idCheck", "/account/kakao/**", "/", "/place", "/place/map", "/posts", "/post/*/detail").permitAll() // 누구나 접근 가능 .anyRequest().authenticated(); // 나머지 요청은 권한이 있어야함 http.logout() .logoutUrl("/logout") diff --git a/src/main/java/com/matdongsan/web/controller/post/PostController.java b/src/main/java/com/matdongsan/web/controller/post/PostController.java index 55ee533c..c43b6386 100644 --- a/src/main/java/com/matdongsan/web/controller/post/PostController.java +++ b/src/main/java/com/matdongsan/web/controller/post/PostController.java @@ -52,7 +52,7 @@ public class PostController { // 게시글 상세 조회 - @GetMapping("/post/{id}") + @GetMapping("/post/{id}/detail") public String showDetailPost(@PathVariable long id, @RequestParam(value = "page", defaultValue = "0") int page, Model model, @ModelAttribute("replyDto") ReplyDto replyDto, diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 0605bbfa..28b463c2 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -14,7 +14,7 @@ -

맛! 동! 산! 맛 동도로동동동동 산~!

+

맛동산 프로젝트 | Github

diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 57007d29..b7a341a8 100755 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -103,7 +103,7 @@

인기 포스팅 TOP 5