404 JSON response if the asset is not found

(Brady and I will argue about this forever)
This commit is contained in:
snipe 2017-01-11 19:12:25 -08:00
parent 74696d5ded
commit 2c695cf7e5

View file

@ -186,7 +186,7 @@ class AssetsController extends Controller
return $asset;
}
return response()->json(['error' => trans('admin/hardware/message.does_not_exist')]);
return response()->json(['error' => trans('admin/hardware/message.does_not_exist')], 404);
}