mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Merge pull request #428 from strapi/fix/language-api
Authorize config files name as API fix #417
This commit is contained in:
commit
7ea9fdf6f4
@ -78,14 +78,14 @@ module.exports = {
|
||||
const aggregate = files.filter(
|
||||
p =>
|
||||
intersection(p.split('/').map(p => p.replace('.json', '')), ['environments', 'database', 'security', 'request', 'response', 'server']).length === 2 ||
|
||||
p.indexOf('functions') !== -1 ||
|
||||
((p.indexOf('functions') !== -1 ||
|
||||
p.indexOf('policies') !== -1 ||
|
||||
p.indexOf('locales') !== -1 ||
|
||||
p.indexOf('hook') !== -1 ||
|
||||
p.indexOf('middleware') !== -1 ||
|
||||
p.indexOf('language') !== -1 ||
|
||||
p.indexOf('queries') !== -1 ||
|
||||
p.indexOf('layout') !== -1
|
||||
p.indexOf('layout') !== -1) && p.indexOf('api') === -1)
|
||||
);
|
||||
const optional = difference(files, aggregate);
|
||||
|
||||
|
||||
@ -89,4 +89,4 @@
|
||||
},
|
||||
"preferGlobal": true,
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user