Skip to content

Commit

Permalink
feat(redirects): Added redirects schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexnortung committed Aug 24, 2023
1 parent c144fbd commit 335bf29
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions server/admin-api/content-types/redirect/schema.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 335bf29

Please sign in to comment.