Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/app/Controllers/OrdemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Automax\Auth\AccessControl;
use Automax\Support\Validador;
use Automax\Support\ErroValidacao;
use Automax\Support\Logger;

class OrdemController
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/funcionarios/funcionarios.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async function salvarFuncionario() {
const payload = { nome, email, nivel, csrf_token: csrf };
if (senha) payload.senha = senha;

const metodo = id ? 'PUT' : 'POST';
const metodo = id ? 'PATCH' : 'POST';
const url = id ? `/api/funcionarios/${id}` : '/api/funcionarios';

const btn = document.getElementById('btnSalvar');
Expand Down
Loading