diff --git a/public/app/karudhaas.apk b/public/app/karudhaas.apk new file mode 100644 index 0000000..7ec8f69 Binary files /dev/null and b/public/app/karudhaas.apk differ diff --git a/resources/views/pages/preview.blade.php b/resources/views/pages/preview.blade.php index 054dada..cb3d5b6 100644 --- a/resources/views/pages/preview.blade.php +++ b/resources/views/pages/preview.blade.php @@ -265,6 +265,11 @@
+ +
+ Beta +
+
diff --git a/routes/web.php b/routes/web.php index 8465153..281b471 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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]); }); -