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