Skip to content

Commit

Permalink
chore : cicd 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
byeolhaha committed May 12, 2024
1 parent 422a634 commit 15d73f1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
10 changes: 1 addition & 9 deletions src/main/java/com/hellomeritz/global/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}



}
2 changes: 1 addition & 1 deletion src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" href="/styles/index.css">
</head>
<body>
<a href="#" id="openModal"><img src="/InitButton.PNG" alt="외국인 상담"></a>
<a href="#" id="openModal"><img src="/images/InitButton.PNG" alt="외국인 상담"></a>

<div id="myModal" class="modal">
<div class="modal-content">
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/static/js/client-chatrooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/consultant-chatrooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 안에 외국인 이름과 최신 메세지 넣기
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 15d73f1

Please sign in to comment.