Replace index action name

This commit is contained in:
Jim Laurie 2018-03-07 16:25:56 +01:00
parent 17c1e8397d
commit 8b6a52dbff
2 changed files with 2 additions and 9 deletions

View File

@ -3,7 +3,7 @@
{
"method": "POST",
"path": "/",
"handler": "Upload.index",
"handler": "Upload.upload",
"config": {
"policies": []
}

View File

@ -9,14 +9,7 @@
const _ = require('lodash');
module.exports = {
/**
* Default action.
*
* @return {Object}
*/
index: async (ctx) => {
upload: async (ctx) => {
// Retrieve provider configuration.
const config = await strapi.store({
environment: strapi.config.environment,