32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?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');
|