Ignore API public directories in dictionary

This commit is contained in:
loicsaintroch 2015-11-19 16:08:19 +01:00
parent b2ae87f26e
commit fd6e907fc7

View File

@ -72,6 +72,7 @@ module.exports = function (strapi) {
'api/**': function (cb) {
dictionary.optional({
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.api),
excludeDirs: /(public)$/,
filter: /(.+)\.(js|json)$/,
depth: 4
}, cb);