且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将路由映射到显式路径不起作用

更新时间:2022-12-10 08:17:41

路径这里是浏览器地址栏中使用的路径,例如用户可以访问 http://yoursite.com/#/nodes/extensions/phones 在网站上看到这个页面。

The path here is the path used in the browser address bar, e.g. a user would access "http://yoursite.com/#/nodes/extensions/phones" to see this page on your site.

如果您要配置Ember应用程序访问的端点来检索json,例如 http://yoursite.com/api/nodes/extensions/phones 然后需要在您的Ember数据适配器或模型的数据检索功能中配置。

If instead you want to configure the endpoint that the Ember app accesses to retrieve the json, e.g. "http://yoursite.com/api/nodes/extensions/phones" then that needs to be configured in your ember-data adapter or in your model's data retrieval functions.