From 335bf2970badec5d40891e3ffa2719bff0fa2790 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Thu, 24 Aug 2023 13:48:19 +0200 Subject: [PATCH] feat(redirects): Added redirects schema --- .../content-types/redirect/schema.json | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 server/admin-api/content-types/redirect/schema.json diff --git a/server/admin-api/content-types/redirect/schema.json b/server/admin-api/content-types/redirect/schema.json new file mode 100644 index 00000000..973d2316 --- /dev/null +++ b/server/admin-api/content-types/redirect/schema.json @@ -0,0 +1,42 @@ +{ + "kind": "collectionType", + "collectionName": "redirects", + "info": { + "singularName": "redirect", + "pluralName": "redirects", + "displayName": "Redirect" + }, + "options": { + "draftAndPublish": false, + "comment": "" + }, + "pluginOptions": { + "content-manager": { + "visible": false + }, + "content-type-builder": { + "visible": false + } + }, + "attributes": { + "from_path": { + "type": "relation", + "relation": "oneToOne", + "required": true, + "unique": true + }, + "to_path": { + "type": "relation", + "relation": "oneToOne" + }, + "to_url": { + "type": "string" + }, + "redirect_type": { + "type": "enumeration", + "enum": ["permanent", "temporary"], + "required": true, + "default": "permanent" + } + } +}