Card APIでタグ情報も取れるようにする

This commit is contained in:
shibafu committed 2019-06-26 01:40:55 +09:00
1 parent 41039a6650
commit a1cb313d4f
3 files changed
+6 -1

No files matched your search

@@ -51,6 +51,8 @@ class CardController
$metadata->tags()->sync($tagIds);
}
$metadata->load('tags');
$response = response($metadata);
if (!config('app.debug')) {
$response = $response->setCache(['public' => true, 'max_age' => 86400]);