Skip to content

Commit

Permalink
Merge pull request #117 from TRIP-Side-Project/dev
Browse files Browse the repository at this point in the history
알림 테스트용 index.html 수정
  • Loading branch information
kwondongwook authored Dec 22, 2023
2 parents ae25b80 + bee9254 commit 3f7f056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="src/eventsource.js"></script>
<script type="text/javascript">
function connect(accessToken) {
const sse = new EventSourcePolyfill('http://localhost:8080/api/notifications/connect', {
const sse = new EventSourcePolyfill('https://triptrip.site/api/notifications/connect', {
headers: {
accessToken: accessToken
}
Expand All @@ -31,9 +31,9 @@
}

function sendToAll(accessToken, message) {
fetch('http://localhost:8080/api/notifications/send-to-all?message=' + message, {
fetch('https://triptrip.site/api/notifications/send-to-all?message=' + message, {
headers: {
accessToken: 'Bearer ' + accessToken
accessToken: accessToken
}
})
.catch(error => console.log('error: ', error));
Expand Down

0 comments on commit 3f7f056

Please sign in to comment.