aa
This commit is contained in:
@@ -37,7 +37,7 @@ class ArticleController extends Controller
|
|||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Registrazione dell'errore
|
// Registrazione dell'errore
|
||||||
return response()->json(['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()], 500);
|
return ['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $articoli;
|
return $articoli;
|
||||||
|
|||||||
Reference in New Issue
Block a user