From c54aa5287ae7f9b469c67034e76669447cfce184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A4ser?= Date: Mon, 13 Feb 2023 15:50:12 +0100 Subject: [PATCH] fix: Add Seo component into articles and categories endpoint --- src/api/article/content-types/article/schema.json | 12 +++++++++--- src/api/category/content-types/category/schema.json | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/api/article/content-types/article/schema.json b/src/api/article/content-types/article/schema.json index 7950aea..88a956e 100644 --- a/src/api/article/content-types/article/schema.json +++ b/src/api/article/content-types/article/schema.json @@ -32,20 +32,26 @@ "inversedBy": "articles" }, "image": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": false + ] }, "author": { "type": "relation", "relation": "manyToOne", "target": "api::writer.writer", "inversedBy": "articles" + }, + "seo": { + "type": "component", + "repeatable": false, + "component": "shared.seo" } } } diff --git a/src/api/category/content-types/category/schema.json b/src/api/category/content-types/category/schema.json index 6361f78..d991e4f 100644 --- a/src/api/category/content-types/category/schema.json +++ b/src/api/category/content-types/category/schema.json @@ -26,14 +26,20 @@ "mappedBy": "category" }, "image": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": false + ] + }, + "seo": { + "type": "component", + "repeatable": false, + "component": "shared.seo" } } }