Skip to content

Commit

Permalink
Merge pull request #149 from minseok1015/dev
Browse files Browse the repository at this point in the history
feat : 원상복구
  • Loading branch information
minseok1015 authored Aug 19, 2024
2 parents 75811b6 + c978bef commit 5556947
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;


import java.util.List;

Expand Down Expand Up @@ -56,16 +54,7 @@ public void addCorsMappings(CorsRegistry registry) {
.allowCredentials(true);
}

@Override
public void addViewControllers(ViewControllerRegistry registry) {
// 모든 경로에서 index.html을 반환하도록 설정
registry.addViewController("/{spring:\\w+}")
.setViewName("forward:/index.html");
registry.addViewController("/**/{spring:\\w+}")
.setViewName("forward:/index.html");
registry.addViewController("/{spring:\\w+}/**{spring:?!(\\.js|\\.css|\\.png|\\.jpg)$}")
.setViewName("forward:/index.html");
}




Expand Down

0 comments on commit 5556947

Please sign in to comment.