This commit is contained in:
2025-08-07 08:56:49 +09:00
parent d20f630e1b
commit 2b53b8cd3d
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ document.getElementById("commandExec").addEventListener("click", async () => {
});
document.getElementById("weatherUeuse").addEventListener("click", async () => {
const req = await fetch("/actions/weatherUeuse", {
const req = await fetch("/actions/weather", {
method: "POST",
});
@@ -57,7 +57,7 @@ document.getElementById("ueuse").addEventListener("click", async () => {
});
document.getElementById("api").addEventListener("click", async () => {
const token = await (fetch("/actions/token", {
const token = await (await fetch("/actions/token", {
method: "GET",
})).text();
@@ -68,7 +68,7 @@ document.getElementById("api").addEventListener("click", async () => {
return;
}
const body = prompt("body(JSON)", `{"token": ${token}}`).toLowerCase();
const body = prompt("body(JSON)", `{"token": "${token}"}`).toLowerCase();
if (body === "") {
alert("bodyが設定されていません。");