在我的backand app中,我创建了一个应该返回一系列对象的Action。但是,我似乎无法让它发挥作用。我一直收到404错误:
Action not found, or is not on demand
虽然:
该操作是按需操作
它曾经工作,直到我开始使用vanilla SDK(这似乎是后面的新标准,如果我错了,请纠正我)
我只是复制粘贴Backand在您创建操作时提供的代码
这是我的代码:
this.fetchUserFeed = function(userId) {
return Backand.object.action.get("entities", "fetchUserFeed", {
"parameters": {
"user": userId
}
}).then(function(res) { console.log(res); }, handleError('Error fetching user feed'));
}
任何人都知道可能会导致这种情况的原因吗?
提前致谢!