diff --git a/api/app/Http/Controllers/V1/Partners/VdmController.php b/api/app/Http/Controllers/V1/Partners/VdmController.php index d0c31ac..926e924 100644 --- a/api/app/Http/Controllers/V1/Partners/VdmController.php +++ b/api/app/Http/Controllers/V1/Partners/VdmController.php @@ -4,30 +4,31 @@ namespace App\Http\Controllers\V1\Partners; use App\Http\Controllers\Controller; -use App\Http\Requests\VdmRequest; +//use App\Http\Requests\VdmRequest; use Carbon\Carbon; use Illuminate\Support\Facades\DB; class VdmController extends Controller { - public function store(VdmRequest $request) + //public function store(VdmRequest $request) + public function store() { - $records = []; - - // merge two input arrays - $cve = $request->get('cve'); - $cwe = $request->get('cwe'); - - $merged = array_merge($cve, $cwe); - - foreach ($merged as $item) { - $records[] = [ - 'asset_id' => $request->get('asset_id'), - 'time' => Carbon::createFromTimestamp($request->get('timestamp')), - 'value' => $item - ]; - } - DB::table('vdm')->insert($records); + // $records = []; + + // // merge two input arrays + // $cve = $request->get('cve'); + // $cwe = $request->get('cwe'); + + // $merged = array_merge($cve, $cwe); + + // foreach ($merged as $item) { + // $records[] = [ + // 'asset_id' => $request->get('asset_id'), + // 'time' => Carbon::createFromTimestamp($request->get('timestamp')), + // 'value' => $item + // ]; + // } + // DB::table('vdm')->insert($records); return response()->json(['success' => 'success'], 200); }