fixed urls
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
if(!input) return alert("Inserisci del testo!");
|
||||
|
||||
try {
|
||||
const risposta = await fetch("http://localhost:8080/api/cesare/cifra", {
|
||||
const risposta = await fetch("/seal/cesare/encrypt", {
|
||||
method: "POST", headers: { "Content-Type": "application/json" },
|
||||
// Invia il testo e la CHIAVE (convertita in numero) al server
|
||||
body: JSON.stringify({ testo: input, chiave: parseInt(chiave) })
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
if(!inputCifrato) return alert("Nessun testo da decifrare!");
|
||||
try {
|
||||
const risposta = await fetch("http://localhost:8080/api/cesare/decifra", {
|
||||
const risposta = await fetch("/seal/cesare/decrypt", {
|
||||
method: "POST", headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ testo: inputCifrato, chiave: parseInt(chiave) })
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user