Merge pull request #34 from rede5/codex/fix-405-method-not-allowed-error

Use PATCH for company update to match API route
This commit is contained in:
Tiago Yamamoto 2025-12-22 17:32:32 -03:00 committed by GitHub
commit 6517839c9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ const GestaoEmpresas = () => {
console.log('📤 Dados para atualização:', payload);
const response = await fetch(`/api/empresas/${editingEmpresa.$id}`, {
method: 'PUT',
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
});