News letter subscription added
This commit is contained in:
@@ -29,9 +29,9 @@ class TopicsAPIController extends Controller
|
||||
*/
|
||||
public function show(Topic $topic)
|
||||
{
|
||||
return [
|
||||
return response()->json([
|
||||
'topic' => new TopicResource($topic),
|
||||
'articles' => $topic->articles()->with('source')->latest('published_date')->paginate(8)
|
||||
];
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user