Initial commit
This commit is contained in:
15
routes/console.php
Normal file
15
routes/console.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
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::command('subscriptions:sync')->hourly()->withoutOverlapping();
|
||||
|
||||
//php artisan subscriptions:sync
|
||||
31
routes/web.php
Normal file
31
routes/web.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Route::get('/', function () {
|
||||
// return view('welcome');
|
||||
// });
|
||||
|
||||
Auth::routes();
|
||||
|
||||
|
||||
Route::get('/home', [App\Http\Controllers\DashboardController::class, 'index'])->name('home');
|
||||
Route::get('/', [App\Http\Controllers\DashboardController::class, 'index'])->name('home');
|
||||
|
||||
|
||||
|
||||
|
||||
// The main dashboard view
|
||||
Route::get('/', [App\Http\Controllers\DashboardController::class, 'index'])->name('dashboard.index');
|
||||
|
||||
// The AJAX endpoint for jQuery to consume
|
||||
Route::get('/api/dashboard/stats', [App\Http\Controllers\DashboardController::class, 'getStats'])->name('api.dashboard.stats');
|
||||
|
||||
|
||||
Route::get('/services/create', [App\Http\Controllers\SubscriptionServiceController::class, 'create'])->name('services.create');
|
||||
Route::post('/services', [App\Http\Controllers\SubscriptionServiceController::class, 'store'])->name('services.store');
|
||||
|
||||
Route::post('/services/test-connection', [App\Http\Controllers\SubscriptionServiceController::class, 'testConnection'])->name('services.test');
|
||||
|
||||
// routes/web.php
|
||||
Route::get('/services/{id}/details', [App\Http\Controllers\DashboardController::class, 'details'])->name('services.details');
|
||||
Reference in New Issue
Block a user