view('home')); Route::get('/preview', fn () => view('pages.preview')); Route::get('/download/android', fn () => redirect("https://play.google.com/store/apps/details?id=dev.baraveli.karudhaas")); Route::get('/article/{source}/{guid}', [ArticlesController::class, 'show'])->name('articles.show'); Route::get('/topic/{topic:slug}', [TopicsController::class, 'show'])->name('topics.show'); Route::get('/source/{source:slug}', [SourcesController::class, 'show'])->name('sources.show'); Route::get('/mylist', [MylistController::class, 'index'])->name('mylist.index'); Route::post('/mylist/{article:id}', [MylistController::class, 'store'])->name('mylist.store'); Route::group(['prefix' => 'namespaces'], function(){ Route::get('/', [NameSpaceController::class, 'index'])->name('namespaces.index'); Route::get('/{namespace}', [NameSpaceController::class, 'show'])->name('namespaces.show'); }); Route::get('/about', function () { return view('pages.about', [ 'sources' => Source::all(), 'total_topics' => Topic::count(), 'total_articles' => Article::count() ]); }); Route::middleware(['auth:sanctum', 'verified'])->prefix('dashboard')->namespace('Admin')->group(function() { Route::get('/', function () { return view('admin.dashboard', [ 'total_sources' => Source::count(), 'total_topics' => Topic::count(), 'total_articles' => Article::count() ]); })->name('dashboard.index'); Route::get('/analytics', AnalyticsController::class)->name('dashboard.analytics'); Route::get('/monitor', MonitorController::class)->name('dashboard.monitor'); });