download(public_path('app/karudhaas.apk'), 'karudhaas.apk', [ 'Content-type' => 'application/x-binary' ]); }); Route::get('/article/{article:id}', [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::get('/about', function () { return view('pages.about', [ 'sources' => Source::all(), 'total_topics' => Topic::count(), 'total_articles' => Article::count() ]); }); Route::get('/ogimage', function (Request $request) { $article = Article::findOrFail($request->query('id')); return view('ogimage', ['article' => $article]); });