/{gdc}/devoluciones devuelve no content
This commit is contained in:
parent
85746f2d4d
commit
fbbb400892
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ Route::middleware('api')->group(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::post('/{gdc}/devoluciones', function($gdc) {
|
Route::post('/{gdc}/devoluciones', function($gdc) {
|
||||||
$habilitadas = GrupoDeCompra::find($gdc)->toggleDevoluciones();
|
GrupoDeCompra::find($gdc)->toggleDevoluciones();
|
||||||
return ['devoluciones' => $habilitadas];
|
return response()->noContent();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue