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