Changed to topic link

This commit is contained in:
2020-08-08 23:20:19 +05:00
parent 5f9a74166d
commit 3a690f7eee
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
]);
}