mirror of
https://github.com/strapi/strapi.git
synced 2025-10-30 17:37:26 +00:00
chore(upload)
This commit is contained in:
parent
c486ec8d0f
commit
358e26ed18
@ -21,7 +21,7 @@ module.exports = {
|
|||||||
ctx.body = { data };
|
ctx.body = { data };
|
||||||
},
|
},
|
||||||
|
|
||||||
async getViewConfiguration(ctx) {
|
async findViewConfiguration(ctx) {
|
||||||
const data = await getService('upload').getConfiguration();
|
const data = await getService('upload').getConfiguration();
|
||||||
|
|
||||||
ctx.body = { data };
|
ctx.body = { data };
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const { ACTIONS } = require('../constants');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
type: 'admin',
|
type: 'admin',
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/configuration',
|
path: '/configuration',
|
||||||
handler: 'view-configuration.getViewConfiguration',
|
handler: 'view-configuration.findViewConfiguration',
|
||||||
config: {
|
config: {
|
||||||
policies: ['admin::isAuthenticatedAdmin'],
|
policies: ['admin::isAuthenticatedAdmin'],
|
||||||
},
|
},
|
||||||
@ -21,7 +23,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
name: 'admin::hasPermissions',
|
name: 'admin::hasPermissions',
|
||||||
config: {
|
config: {
|
||||||
actions: ['plugin::upload.configure-view'],
|
actions: [ACTIONS.configureView],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user