mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 06:08:50 +00:00
Replace index action name
This commit is contained in:
parent
17c1e8397d
commit
8b6a52dbff
@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"path": "/",
|
"path": "/",
|
||||||
"handler": "Upload.index",
|
"handler": "Upload.upload",
|
||||||
"config": {
|
"config": {
|
||||||
"policies": []
|
"policies": []
|
||||||
}
|
}
|
||||||
|
@ -9,14 +9,7 @@
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
upload: async (ctx) => {
|
||||||
/**
|
|
||||||
* Default action.
|
|
||||||
*
|
|
||||||
* @return {Object}
|
|
||||||
*/
|
|
||||||
|
|
||||||
index: async (ctx) => {
|
|
||||||
// Retrieve provider configuration.
|
// Retrieve provider configuration.
|
||||||
const config = await strapi.store({
|
const config = await strapi.store({
|
||||||
environment: strapi.config.environment,
|
environment: strapi.config.environment,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user