2017-07-16 65 views
0

在Adrian Hall的tutorial中,我找到了將此代碼添加到服務器的部分。他說,他將其添加到Azure移動應用程序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' 
    } 
}); 

回答

1

我找到了。它位於wwwroot下app.js中azure門戶的腳本中。

相關問題