mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 17:10:08 +00:00
32 lines
654 B
JavaScript
32 lines
654 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
type: 'admin',
|
|
routes: [
|
|
{
|
|
method: 'GET',
|
|
path: '/configuration',
|
|
handler: 'view-configuration.getViewConfiguration',
|
|
config: {
|
|
policies: ['admin::isAuthenticatedAdmin'],
|
|
},
|
|
},
|
|
{
|
|
method: 'PUT',
|
|
path: '/configuration',
|
|
handler: 'view-configuration.updateViewConfiguration',
|
|
config: {
|
|
policies: [
|
|
'admin::isAuthenticatedAdmin',
|
|
{
|
|
name: 'admin::hasPermissions',
|
|
config: {
|
|
actions: ['plugin::upload.configure-view'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
};
|