在此tutorial作者:Adrian Hall 我已经到了将此代码添加到服务器的部分。他说他将其添加到 azure mobile apps sdk 的初始化中。我不知道在哪里可以找到这个并把它放在哪里。我最终将其放入我的 javascript 文件中,但这不会返回 azuremobileapps(显然)。那么我该把这段代码放在哪里呢?我对此很陌生,提前致谢。
// Configuration of the Azure Mobile Apps can be done via an object, the
// environment or an auxiliary file. For more information, see
// http://azure.github.io/azure-mobile-apps-node/global.html#configuration
var mobileApp = azureMobileApps({
// Explicitly enable the Azure Mobile Apps home page
homePage: true,
// Explicitly enable swagger support. UI support is enabled by
// installing the swagger-ui npm module.
swagger: true,
// Authentication settings for custom auth
auth: {
audience: '04pHmxVuhYU1QTDo4lEojLo1sseRLfKG',
issuer: 'https://shellmonger.auth0.com'
}
});
最佳答案
我找到了。它位于 azure 门户上 wwwroot 下 app.js 的脚本中。
关于javascript - 找不到可变的azure移动应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45133511/