mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Remove ct
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
e0dbf21925
commit
2de81865d8
@ -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": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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 = {};
|
||||
@ -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 = {};
|
||||
@ -1,16 +0,0 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "vegetables",
|
||||
"info": {
|
||||
"name": "vegetable"
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": true
|
||||
},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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 = {};
|
||||
@ -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') || '');
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user