diff --git a/app/Http/Controllers/StatusReportController.php b/app/Http/Controllers/StatusReportController.php new file mode 100644 index 0000000..8312c62 --- /dev/null +++ b/app/Http/Controllers/StatusReportController.php @@ -0,0 +1,29 @@ +url]['uptime'] = $site->generateUptimeReport(); + $results[$site->url]['ssl'] = $site->certificates()->latest()->first(); + $results[$site->url]['dns'] = $site->last_dns_scans; + $results[$site->url]['robots'] = $site->last_robot_scans; + } + + return $results; + } +} diff --git a/routes/web.php b/routes/web.php index 9933dd6..f13fb81 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,6 +17,8 @@ Route::put('edit-account', '\Maelstrom\Http\Controllers\EditAccountController@update'); Route::post('logout', 'Auth\LoginController@logout')->name('maelstrom.logout'); + Route::get('status', 'StatusReportController')->name('status'); + Route::post('websites/bulk', 'WebsiteController@bulk')->name('websites.bulk'); Route::resource('websites', 'WebsiteController'); Route::get('websites/{website}/robots', 'RobotCompareController')->name('robots');