From 3226a58a96be94ecd29ef44b95b55296479dfb0c Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Sat, 8 Aug 2020 23:30:20 +0500 Subject: [PATCH] Source route --- routes/api.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/api.php b/routes/api.php index 812e093..435a6dd 100644 --- a/routes/api.php +++ b/routes/api.php @@ -3,6 +3,8 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\ArticlesController; +use App\Http\Controllers\SourceController; +use App\Http\Controllers\SourcesController; use App\Http\Controllers\TopicsController; /* @@ -22,4 +24,7 @@ Route::get('latest', \LatestArticles::class)->name('latest'); Route::get('topics', [TopicsController::class, 'index'])->name('topics.index'); Route::get('topic/{topic:slug}', [TopicsController::class, 'show'])->name('topics.show'); +Route::get('sources', [SourcesController::class, 'index'])->name('sources.index'); +Route::get('source/{source:slug}',[SourcesController::class, 'show'])->name('sources.show'); + Route::get('article/{article:id}', [ArticlesController::class, 'show'])->name('article.show'); \ No newline at end of file