This commit is contained in:
paoloar77
2024-05-20 23:34:53 +02:00
parent 95e0ace09f
commit 9af652d62c
2 changed files with 2 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
let id = formData.get('id');
let action = formData.get('action');
fetch('{{ url('handle-article-action') }}/id=' + id + '&action=' + action)
fetch('{{ url('handle-article-action-pao') }}/id=' + id + '&action=' + action)
.then(response => response.text())
.then(data => {
document.getElementById('result').innerHTML = data;

View File

@@ -6217,11 +6217,7 @@ Route::get('/mylinkspao', function () {
return view('mylinkspao');
});
Route::get('/handle-article-action', function (Request $request) {
$id = $request->id;
$action = $request->action;
Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
if ($action == 'search') {
// Logica di ricerca dell'articolo