mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
fixing file paths when generating APIs inside plugins
This commit is contained in:
parent
2435689d50
commit
9f4ef943e6
@ -45,7 +45,7 @@ module.exports = plop => {
|
||||
},
|
||||
],
|
||||
actions(answers) {
|
||||
const filePath = answers.isPluginApi && answers.plugin ? 'plugins/{{plugin}}' : 'api/{{id}}';
|
||||
const filePath = answers.isPluginApi && answers.plugin ? 'plugins/{{plugin}}/server' : 'api/{{id}}';
|
||||
|
||||
const baseActions = [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user