fixed urls

This commit is contained in:
2026-03-27 22:47:47 +01:00
parent 75698d078f
commit 2565f8f04c
3 changed files with 13 additions and 11 deletions

View File

@@ -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) })
});