Skip to content

Commit

Permalink
feat(backend): export config for new endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
sidemt committed Aug 23, 2023
1 parent 2a4101d commit 71e388a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 32 deletions.
12 changes: 6 additions & 6 deletions publish-backend/config/sync/admin-role.strapi-super-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"title",
"slug",
"feature_image",
"author",
"body",
"excerpt",
"tags"
"tags",
"author"
],
"locales": [
"en"
Expand Down Expand Up @@ -50,10 +50,10 @@
"title",
"slug",
"feature_image",
"author",
"body",
"excerpt",
"tags"
"tags",
"author"
],
"locales": [
"en"
Expand All @@ -69,10 +69,10 @@
"title",
"slug",
"feature_image",
"author",
"body",
"excerpt",
"tags"
"tags",
"author"
],
"locales": [
"en"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,6 @@
"sortable": false
}
},
"author": {
"edit": {
"label": "author",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "username"
},
"list": {
"label": "author",
"searchable": true,
"sortable": true
}
},
"body": {
"edit": {
"label": "body",
Expand Down Expand Up @@ -120,6 +105,21 @@
"sortable": false
}
},
"author": {
"edit": {
"label": "author",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "username"
},
"list": {
"label": "author",
"searchable": true,
"sortable": true
}
},
"createdAt": {
"edit": {
"label": "createdAt",
Expand Down Expand Up @@ -173,12 +173,6 @@
"size": 6
}
],
[
{
"name": "author",
"size": 6
}
],
[
{
"name": "body",
Expand All @@ -194,6 +188,12 @@
"name": "tags",
"size": 6
}
],
[
{
"name": "author",
"size": 6
}
]
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,6 @@
{
"name": "last_seen",
"size": 6
},
{
"name": "posts",
"size": 6
}
],
[
Expand All @@ -424,6 +420,12 @@
"name": "profile_image",
"size": 6
}
],
[
{
"name": "posts",
"size": 6
}
]
]
}
Expand Down
9 changes: 9 additions & 0 deletions publish-backend/config/sync/user-role.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"description": "Default role given to unauthenticated user (unauthenticated API calls).",
"type": "public",
"permissions": [
{
"action": "api::custom-post.custom-post.find"
},
{
"action": "api::custom-post.custom-post.findOne"
},
{
"action": "api::custom-post.custom-post.findOneBySlug"
},
{
"action": "api::post.post.find"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"termsOfService": null,
"contact": null,
"license": null,
"x-generation-date": "2023-08-21T16:30:33.656Z"
"x-generation-date": "2023-08-23T06:29:11.115Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down

0 comments on commit 71e388a

Please sign in to comment.