Remove ct

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-06-18 11:12:45 +02:00 committed by Alexandre Bodin
parent e0dbf21925
commit 2de81865d8
7 changed files with 2 additions and 95 deletions

View File

@ -1,52 +0,0 @@
{
"routes": [
{
"method": "GET",
"path": "/vegetables",
"handler": "vegetable.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/vegetables/count",
"handler": "vegetable.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/vegetables/:id",
"handler": "vegetable.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/vegetables",
"handler": "vegetable.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/vegetables/:id",
"handler": "vegetable.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/vegetables/:id",
"handler": "vegetable.delete",
"config": {
"policies": []
}
}
]
}

View File

@ -1,8 +0,0 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};

View File

@ -1,8 +0,0 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {};

View File

@ -1,16 +0,0 @@
{
"kind": "collectionType",
"collectionName": "vegetables",
"info": {
"name": "vegetable"
},
"options": {
"increments": true,
"timestamps": true
},
"attributes": {
"name": {
"type": "string"
}
}
}

View File

@ -1,8 +0,0 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};

View File

@ -37,7 +37,6 @@ const RoleListPage = () => {
} = useUserPermissions(adminPermissions.settings.roles);
const { getData, roles, isLoading } = useRolesList(false);
const getDataRef = useRef(getData);
// console.log({ roles });
const { toggleHeaderSearch } = useSettingsHeaderSearchContext();
const query = useQuery();
const _q = decodeURIComponent(query.get('_q') || '');

View File

@ -3,10 +3,10 @@ import { CheckPagePermissions } from 'strapi-helper-plugin';
import adminPermissions from '../../../permissions';
import EditPage from '../EditPage';
const ProtectedListPage = () => (
const ProtectedEditPage = () => (
<CheckPagePermissions permissions={adminPermissions.settings.roles.update}>
<EditPage />
</CheckPagePermissions>
);
export default ProtectedListPage;
export default ProtectedEditPage;