Whitelist and blacklist Wordpress REST routes
This commit is contained in:
1 parent
e198ec3c23
commit
051a45facb
1 file changed
+16
@@ -19,6 +19,22 @@ module.exports = {
|
||||
auth: {},
|
||||
// Set to true to debug endpoints on 'gatsby build'
|
||||
verboseOutput: true,
|
||||
includedRoutes: [
|
||||
"**/*/*/categories",
|
||||
"**/*/*/events",
|
||||
"**/*/*/posts",
|
||||
"**/*/*/pages",
|
||||
"**/*/*/media",
|
||||
"**/*/*/tags",
|
||||
"**/*/*/taxonomies",
|
||||
"**/*/*/users",
|
||||
],
|
||||
excludedRoutes: [
|
||||
"/yoast/**",
|
||||
"**/*/*/comments",
|
||||
"**/*/*/settings",
|
||||
"**/*/*/users/me",
|
||||
],
|
||||
},
|
||||
},
|
||||
'gatsby-plugin-sharp',
|
||||
|
||||
Reference in new issue
Block a user