mirror of
https://github.com/strapi/strapi.git
synced 2025-07-27 02:44:13 +00:00
72 lines
1.5 KiB
JavaScript
72 lines
1.5 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = [
|
|
{
|
|
method: 'GET',
|
|
path: '/init',
|
|
handler: 'admin.init',
|
|
config: { auth: false },
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/project-settings',
|
|
handler: 'admin.getProjectSettings',
|
|
config: {
|
|
policies: [
|
|
'admin::isAuthenticatedAdmin',
|
|
{
|
|
name: 'admin::hasPermissions',
|
|
config: { actions: ['admin::project-settings.read'] },
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/project-settings',
|
|
handler: 'admin.updateProjectSettings',
|
|
config: {
|
|
policies: [
|
|
'admin::isAuthenticatedAdmin',
|
|
{
|
|
name: 'admin::hasPermissions',
|
|
config: { actions: ['admin::project-settings.update'] },
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/project-type',
|
|
handler: 'admin.getProjectType',
|
|
config: { auth: false },
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/information',
|
|
handler: 'admin.information',
|
|
config: {
|
|
policies: ['admin::isAuthenticatedAdmin'],
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/telemetry-properties',
|
|
handler: 'admin.telemetryProperties',
|
|
config: {
|
|
policies: ['admin::isAuthenticatedAdmin'],
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/plugins',
|
|
handler: 'admin.plugins',
|
|
config: {
|
|
policies: [
|
|
'admin::isAuthenticatedAdmin',
|
|
{ name: 'admin::hasPermissions', config: { actions: ['admin::marketplace.read'] } },
|
|
],
|
|
},
|
|
},
|
|
];
|