v8.0.1
This commit is contained in:
@@ -57,6 +57,10 @@ document.getElementById("ueuse").addEventListener("click", async () => {
|
||||
});
|
||||
|
||||
document.getElementById("api").addEventListener("click", async () => {
|
||||
const token = await (fetch("/actions/token", {
|
||||
method: "GET",
|
||||
})).text();
|
||||
|
||||
const endpoint = prompt("エンドポイント", "/serverinfo-api").toLowerCase();
|
||||
|
||||
if (endpoint === "") {
|
||||
@@ -64,7 +68,7 @@ document.getElementById("api").addEventListener("click", async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const body = prompt("body(JSON)", `{"key": "value"}`).toLowerCase();
|
||||
const body = prompt("body(JSON)", `{"token": ${token}}`).toLowerCase();
|
||||
|
||||
if (body === "") {
|
||||
alert("bodyが設定されていません。");
|
||||
|
||||
Reference in New Issue
Block a user