Change POST from Bananas to GET
This commit is contained in:
6
samy.js
6
samy.js
@@ -234,7 +234,7 @@ async function fetchSites() {
|
||||
|
||||
try {
|
||||
const resp = await fetch("/getpw", {
|
||||
method: "POST",
|
||||
method: "GET",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ password: pwd }),
|
||||
});
|
||||
@@ -265,7 +265,7 @@ async function fetchSites() {
|
||||
// =======================================================================
|
||||
let allPrinters = [];
|
||||
|
||||
// POST /getprinters with password from Devices tab
|
||||
// GET /getprinters with password from Devices tab
|
||||
async function fetchPrinters() {
|
||||
const pwdInput = document.getElementById("PrinterPassword");
|
||||
const pwd = pwdInput?.value;
|
||||
@@ -290,7 +290,7 @@ async function fetchPrinters() {
|
||||
|
||||
try {
|
||||
const resp = await fetch("/getprinters", {
|
||||
method: "POST",
|
||||
method: "GET",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ password: pwd }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user