Skip to content

Commit

Permalink
Fix text messages embed
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Aug 26, 2024
1 parent 66eea59 commit 9fa6218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ app.get("/", async (req, res) => {
res.sendFile(path.join(__dirname, "public/index.html"));
});

app.get("/api/v1/text-messages/embed", async (req, res) => {
app.get("/text-messages/embed", async (req, res) => {
res.sendFile(path.join(__dirname, "public/text-messages-embed.html"));
});

Expand Down
6 changes: 3 additions & 3 deletions app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ <h3 class="text-sm">{{ selectedNode.long_name }}</h3>
<!-- sent messages -->
<a
target="_blank"
:href="`/api/v1/text-messages/embed?from=${selectedNode.node_id}`"
:href="`/text-messages/embed?from=${selectedNode.node_id}`"
class="flex flex-col"
title="Messages sent from this Node">
<div class="flex mx-auto mb-1">
Expand Down Expand Up @@ -1004,7 +1004,7 @@ <h3 class="text-sm">{{ selectedNode.long_name }}</h3>
<!-- received messages -->
<a
target="_blank"
:href="`/api/v1/text-messages/embed?to=${selectedNode.node_id}`"
:href="`/text-messages/embed?to=${selectedNode.node_id}`"
class="flex flex-col"
title="Messages sent to this Node">
<div class="flex mx-auto mb-1">
Expand Down Expand Up @@ -1032,7 +1032,7 @@ <h3 class="text-sm">{{ selectedNode.long_name }}</h3>
<!-- gated messages -->
<a
target="_blank"
:href="`/api/v1/text-messages/embed?gateway_id=${selectedNode.node_id}`"
:href="`/text-messages/embed?gateway_id=${selectedNode.node_id}`"
class="flex flex-col"
title="Messages gated to MQTT by this Node">
<div class="flex mx-auto mb-1">
Expand Down

0 comments on commit 9fa6218

Please sign in to comment.