Skip to content

Commit

Permalink
fix: merge resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-mj committed Aug 24, 2024
2 parents 2976129 + 06df35b commit ab2e341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public String preview(
model.addAttribute("score", eventUser.getGameScore());
model.addAttribute("apiUrl", baseUrl);
model.addAttribute("ogUrl", baseUrl + "/api/v1/preview/" + previewRequest.getSharedUrl());
model.addAttribute("sharedUrl", previewRequest.getSharedUrl());

return "preview";
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/*<![CDATA[*/
window.addEventListener('load', function() {
const baseUrl = /*[[${apiUrl}]]*/ '';
const url = `${baseUrl}/url/${previewRequest.sharedUrl}`;
const url = `${baseUrl}/url/${sharedUrl}`;
// fetch를 사용하여 GET 요청 보내기
fetch(url)
.then(response => {
Expand All @@ -44,4 +44,4 @@
/*]]>*/
</script>
</body>
</html>
</html>

0 comments on commit ab2e341

Please sign in to comment.