lots of progress
This commit is contained in:
@@ -2,7 +2,29 @@
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
// Schedule uptime monitoring to run every 5 minutes
|
||||
Schedule::command('monitor:uptime')
|
||||
->everyFiveMinutes()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/uptime-monitoring.log'));
|
||||
|
||||
// Schedule SSL certificate monitoring to run daily
|
||||
Schedule::command('monitor:ssl')
|
||||
->daily()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/ssl-monitoring.log'));
|
||||
|
||||
// Schedule broken link monitoring to run weekly
|
||||
Schedule::command('monitor:links')
|
||||
->weekly()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/link-monitoring.log'));
|
||||
|
||||
+30
-1
@@ -1,7 +1,36 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AlertController;
|
||||
use App\Http\Controllers\DashboardController;
|
||||
use App\Http\Controllers\SettingsController;
|
||||
use App\Http\Controllers\SiteController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
return view('welcome-landing');
|
||||
})->name('home');
|
||||
|
||||
Auth::routes();
|
||||
|
||||
// Override the default /home route from Auth scaffolding
|
||||
Route::get('/home', function () {
|
||||
return redirect()->route('dashboard');
|
||||
});
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
|
||||
Route::resource('sites', SiteController::class);
|
||||
Route::get('dashboard/{site}', [DashboardController::class, 'show'])->name('dashboard.show');
|
||||
|
||||
// Alerts
|
||||
Route::get('/alerts', [AlertController::class, 'index'])->name('alerts.index');
|
||||
Route::patch('/alerts/{notification}/read', [AlertController::class, 'markAsRead'])->name('alerts.markAsRead');
|
||||
Route::patch('/alerts/read-all', [AlertController::class, 'markAllAsRead'])->name('alerts.markAllAsRead');
|
||||
Route::delete('/alerts/{notification}', [AlertController::class, 'destroy'])->name('alerts.destroy');
|
||||
Route::delete('/alerts/delete-read', [AlertController::class, 'deleteRead'])->name('alerts.deleteRead');
|
||||
|
||||
// Settings
|
||||
Route::get('/settings', [SettingsController::class, 'index'])->name('settings');
|
||||
Route::patch('/settings/notifications', [SettingsController::class, 'updateNotifications'])->name('settings.notifications');
|
||||
Route::patch('/settings/slack', [SettingsController::class, 'updateSlack'])->name('settings.slack');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user