aa
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
let id = formData.get('id');
|
let id = formData.get('id');
|
||||||
let action = formData.get('action');
|
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(response => response.text())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
document.getElementById('result').innerHTML = data;
|
document.getElementById('result').innerHTML = data;
|
||||||
|
|||||||
@@ -6217,11 +6217,7 @@ Route::get('/mylinkspao', function () {
|
|||||||
return view('mylinkspao');
|
return view('mylinkspao');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/handle-article-action', function (Request $request) {
|
Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
|
||||||
|
|
||||||
|
|
||||||
$id = $request->id;
|
|
||||||
$action = $request->action;
|
|
||||||
|
|
||||||
if ($action == 'search') {
|
if ($action == 'search') {
|
||||||
// Logica di ricerca dell'articolo
|
// Logica di ricerca dell'articolo
|
||||||
|
|||||||
Reference in New Issue
Block a user