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",
|
||||
"path": "/",
|
||||
"handler": "Upload.index",
|
||||
"handler": "Upload.upload",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user