2021-09-08 16:16:16 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/init',
|
|
|
|
handler: 'admin.init',
|
|
|
|
config: { auth: false },
|
|
|
|
},
|
2022-04-20 15:52:58 +02:00
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/project-settings',
|
|
|
|
handler: 'admin.getProjectSettings',
|
|
|
|
config: {
|
|
|
|
policies: [
|
|
|
|
'admin::isAuthenticatedAdmin',
|
|
|
|
{
|
|
|
|
name: 'admin::hasPermissions',
|
2022-04-25 13:29:19 +02:00
|
|
|
config: { actions: ['admin::project-settings.read'] },
|
2022-04-20 15:52:58 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 11:33:54 +02:00
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/project-settings',
|
|
|
|
handler: 'admin.updateProjectSettings',
|
|
|
|
config: {
|
|
|
|
policies: [
|
|
|
|
'admin::isAuthenticatedAdmin',
|
|
|
|
{
|
|
|
|
name: 'admin::hasPermissions',
|
|
|
|
config: { actions: ['admin::project-settings.update'] },
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2021-09-08 16:16:16 +02:00
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/project-type',
|
|
|
|
handler: 'admin.getProjectType',
|
|
|
|
config: { auth: false },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/information',
|
|
|
|
handler: 'admin.information',
|
|
|
|
config: {
|
|
|
|
policies: ['admin::isAuthenticatedAdmin'],
|
|
|
|
},
|
|
|
|
},
|
2022-04-13 15:41:39 +02:00
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/telemetry-properties',
|
|
|
|
handler: 'admin.telemetryProperties',
|
2022-04-13 16:11:42 +02:00
|
|
|
config: {
|
2022-12-07 14:21:58 +01:00
|
|
|
policies: ['admin::isAuthenticatedAdmin'],
|
2022-04-13 16:11:42 +02:00
|
|
|
},
|
2022-04-13 15:41:39 +02:00
|
|
|
},
|
2021-09-08 16:16:16 +02:00
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/plugins',
|
|
|
|
handler: 'admin.plugins',
|
|
|
|
config: {
|
|
|
|
policies: [
|
|
|
|
'admin::isAuthenticatedAdmin',
|
2021-10-04 18:16:28 +02:00
|
|
|
{ name: 'admin::hasPermissions', config: { actions: ['admin::marketplace.read'] } },
|
2021-09-08 16:16:16 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|