APK and beta
This commit is contained in:
@@ -21,23 +21,27 @@ use App\Topic;
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function(){
|
||||
Route::get('/', function () {
|
||||
return view('home');
|
||||
});
|
||||
|
||||
Route::get('/preview', function(){
|
||||
Route::get('/preview', function () {
|
||||
return view('pages.preview');
|
||||
});
|
||||
|
||||
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('/download/android', function () {
|
||||
return response()->download(public_path('app/karudhaas.apk'));
|
||||
});
|
||||
|
||||
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(){
|
||||
Route::get('/about', function () {
|
||||
return view('pages.about', [
|
||||
'sources' => Source::all(),
|
||||
'total_topics' => Topic::count(),
|
||||
@@ -45,10 +49,9 @@ Route::get('/about', function(){
|
||||
]);
|
||||
});
|
||||
|
||||
Route::get('/ogimage', function(Request $request) {
|
||||
Route::get('/ogimage', function (Request $request) {
|
||||
|
||||
$article = Article::findOrFail($request->query('id'));
|
||||
|
||||
return view('ogimage', ['article' => $article]);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user