diff --git a/src/main/java/com/hellomeritz/global/WebConfig.java b/src/main/java/com/hellomeritz/global/WebConfig.java
index a99fc66..7b4e1ec 100644
--- a/src/main/java/com/hellomeritz/global/WebConfig.java
+++ b/src/main/java/com/hellomeritz/global/WebConfig.java
@@ -33,13 +33,5 @@ public void addInterceptors(InterceptorRegistry registry){
registry.addInterceptor(new IpSensor(objectMapper))
.addPathPatterns("/users/*");
}
-
- @Override
- public void addResourceHandlers(final ResourceHandlerRegistry registry) {
- registry.addResourceHandler("/**")
- .addResourceLocations("classpath:/templates/","classpath:/static/")
- .setCacheControl(CacheControl.maxAge(1, TimeUnit.SECONDS));
- }
-
-
+
}
diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html
index b329497..7ee3f9b 100644
--- a/src/main/resources/static/index.html
+++ b/src/main/resources/static/index.html
@@ -6,7 +6,7 @@
-
diff --git a/src/main/resources/static/js/client-chatrooms.js b/src/main/resources/static/js/client-chatrooms.js
index a968865..3d32aee 100644
--- a/src/main/resources/static/js/client-chatrooms.js
+++ b/src/main/resources/static/js/client-chatrooms.js
@@ -40,7 +40,7 @@ function createChatRoomElement(chatRoom) {
chatRoomElement.classList.add('chat-room');
chatRoomElement.addEventListener('click', function() {
- window.location.href = `/client.html?chatRoomId=${chatRoom.chatRoomId}`;
+ window.location.href = `/templates/client.html?chatRoomId=${chatRoom.chatRoomId}`;
});
const profileImg = document.createElement('img');
@@ -227,7 +227,7 @@ function openChatPasswordModal(chatRoomId) {
alert('Password setting is complete.');
modal.remove();
- window.location.href = `/client.html?chatRoomId=${chatRoomId}`;
+ window.location.href = `/templates/client.html?chatRoomId=${chatRoomId}`;
})
.catch(error => {
console.error('Error:', error);
diff --git a/src/main/resources/static/js/consultant-chatrooms.js b/src/main/resources/static/js/consultant-chatrooms.js
index 1569371..f1a4d6b 100644
--- a/src/main/resources/static/js/consultant-chatrooms.js
+++ b/src/main/resources/static/js/consultant-chatrooms.js
@@ -25,7 +25,7 @@ function createChatRoomElement(chatRoom) {
chatRoomElement.classList.add('chat-room');
chatRoomElement.addEventListener('click', function() {
- window.location.href = `/consultant.html?chatRoomId=${chatRoom.chatRoomId}`;
+ window.location.href = `/templates/consultant.html?chatRoomId=${chatRoom.chatRoomId}`;
});
//chat-room-detail 안에 외국인 이름과 최신 메세지 넣기
diff --git a/src/main/resources/static/js/index.js b/src/main/resources/static/js/index.js
index e3ab4aa..74cd9c2 100644
--- a/src/main/resources/static/js/index.js
+++ b/src/main/resources/static/js/index.js
@@ -3,11 +3,11 @@ document.getElementById("openModal").addEventListener("click", function() {
});
document.getElementById("newCustomer").addEventListener("click", function() {
- window.location.href = "/survey.html";
+ window.location.href = "/templates/survey.html";
});
document.getElementById("existingCustomer").addEventListener("click", function() {
- window.location.href = "/client-chatrooms.html";
+ window.location.href = "/templates/client-chatrooms.html";
});
document.getElementsByClassName("close")[0].addEventListener("click", function() {
diff --git a/src/main/resources/static/js/survey.js b/src/main/resources/static/js/survey.js
index 2ce4716..f052c7e 100644
--- a/src/main/resources/static/js/survey.js
+++ b/src/main/resources/static/js/survey.js
@@ -165,7 +165,7 @@ function openChatPasswordModal(chatRoomId) {
alert('Password setting is complete.');
modal.remove();
- window.location.href = `/client.html?chatRoomId=${chatRoomId}`;
+ window.location.href = `/templates/client.html?chatRoomId=${chatRoomId}`;
})
.catch(error => {
console.error('Error:', error);