mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Change the returns to be API appropriate
This commit is contained in:
parent
f6a1a76095
commit
f5791c79a5
|
@ -179,10 +179,10 @@ class AssetFilesController extends Controller
|
||||||
}
|
}
|
||||||
$log->delete();
|
$log->delete();
|
||||||
|
|
||||||
return redirect()->back()->with('success', trans('admin/hardware/message.deletefile.success'));
|
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/hardware/message.deletefile.success')), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->back()->with('success', trans('admin/hardware/message.deletefile.success'));
|
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/hardware/message.deletefile.success')), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect to the hardware management page
|
// Redirect to the hardware management page
|
||||||
|
|
Loading…
Reference in a new issue