Changed to topic link
This commit is contained in:
@@ -29,7 +29,7 @@ class TopicsController extends Controller
|
||||
public function show(Topic $topic) : JsonResponse
|
||||
{
|
||||
return response()->json([
|
||||
'topic' => $topic,
|
||||
'topic' => new TopicResource($topic),
|
||||
'articles' => $topic->articles()->paginate(8)
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user