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" + } + } +}