PROJECT ENABLE
This commit is contained in:
@@ -143,7 +143,7 @@ crudConfig.delete = crudConfig.delete || {};
|
||||
if (!crudConfig.delete.path) {
|
||||
crudConfig.delete.path = singlePath;
|
||||
}
|
||||
crudConfig.delete.method = crudConfig.delete.method || 'DELETE';
|
||||
crudConfig.delete.method = crudConfig.delete.method || 'POST';
|
||||
|
||||
crudConfig.detailPath = crudConfig.detailPath || detailPath;
|
||||
crudConfig.version = crudConfig.version || versionSegment;
|
||||
@@ -183,8 +183,8 @@ function extractDataRegion(dmsSchema, fallback) {
|
||||
|
||||
function extractSchemaInput(message) {
|
||||
if (message && message.req && message.req.body && typeof message.req.body === 'object') {
|
||||
if (message.req.body.schema !== undefined) {
|
||||
return message.req.body.schema;
|
||||
if (message.req.body.dms_schema !== undefined) {
|
||||
return message.req.body.dms_schema;
|
||||
}
|
||||
if (looksLikeDmsSchema(message.req.body)) {
|
||||
return message.req.body;
|
||||
@@ -193,8 +193,8 @@ function extractSchemaInput(message) {
|
||||
|
||||
if (message && message.payload !== undefined) {
|
||||
if (message.payload && typeof message.payload === 'object') {
|
||||
if (message.payload.schema !== undefined) {
|
||||
return message.payload.schema;
|
||||
if (message.payload.dms_schema !== undefined) {
|
||||
return message.payload.dms_schema;
|
||||
}
|
||||
if (looksLikeDmsSchema(message.payload)) {
|
||||
return message.payload;
|
||||
|
||||
Reference in New Issue
Block a user