feat: aprimora upload/anexos e regras de atendimento no portal

This commit is contained in:
Esdras Renan 2025-10-16 03:01:27 -03:00
parent 7e8023ed87
commit c90e99820f
8 changed files with 218 additions and 74 deletions

View file

@ -1962,6 +1962,7 @@ export function MachineDetails({ machine }: MachineDetailsProps) {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ machineId: machine.id }),
credentials: "include",
})
if (!res.ok) throw new Error(`HTTP ${res.status}`)
toast.success("Máquina excluída")