This commit is contained in:
Mohamed jinas
2024-01-07 01:34:00 +05:00
parent c8d8ccaebb
commit 5060979786
2 changed files with 18 additions and 10 deletions

View File

@@ -1,11 +1,14 @@
<?php
use App\Article;
use App\Http\Controllers\Admin\AnalyticsController;
use App\Http\Controllers\Admin\MonitorController;
use App\Source;
use App\Topic;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\ArticlesController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\TopicsController;
use App\Http\Controllers\SourcesController;
use App\Http\Controllers\MylistController;
@@ -20,7 +23,7 @@ use Spatie\Browsershot\Browsershot;
|
*/
Route::get('/', \HomeController::class)->name('home');
Route::get('/', HomeController::class)->name('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"));
@@ -55,7 +58,7 @@ Route::get('/weather',[WeatherController::class, 'index'])->name('weather');
Route::middleware(['auth:sanctum', 'verified'])->prefix('dashboard')->namespace('Admin')->group(function() {
Route::get('/', function () {
return view('admin.dashboard', [
'total_sources' => Source::count(),
@@ -64,12 +67,12 @@ Route::middleware(['auth:sanctum', 'verified'])->prefix('dashboard')->namespace(
]);
})->name('dashboard.index');
Route::get('/analytics', AnalyticsController::class)->name('dashboard.analytics');
Route::get('/monitor', MonitorController::class)->name('dashboard.monitor');
Route::get('/analytics', AnalyticsController::class)->name('dashboard.analytics');
Route::get('/monitor', MonitorController::class)->name('dashboard.monitor');
});
Route::get('ogimage/{article}', function(Article $article){
return view('ogimage', [
'article' => $article
]);
});
});