如何覆盖NG管理员路线? [英] How to override routes in ng-admin?
本文介绍了如何覆盖NG管理员路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想改变URL中的NG-管理状态。例如,我需要在URL添加一个尾随 /
获取用户的列表。 (的http://本地主机/ API / V1 /用户/而不是
的的http://本地主机/ API / V1 /用户
)
I want to change url in ng-admin state. For example, I need to add a trailing /
at the URL for getting a list of users. (http://localhost/api/v1/users/ instead
of http://localhost/api/v1/users
)
推荐答案
的实体
和查看
类提供的baseUrl()
方法,所以它可能不是很辛苦。只需按照指示从文档:
The Entity
and View
classes offer a baseUrl()
method, so it's probably not very hard. Just follow the directions from the documentation:
- https://github.com/marmelab/ng-admin/blob/master/doc/Configuration-reference.md#entity-configuration
- https://github.com/marmelab/ng-admin/blob/master/doc/Configuration-reference.md#entity-configuration
- https://github.com/marmelab/ NG-管理/ BLOB /主/ DOC / API-mapping.md
- https://github.com/marmelab/ng-admin/blob/master/doc/Configuration-reference.md#entity-configuration
- https://github.com/marmelab/ng-admin/blob/master/doc/Configuration-reference.md#entity-configuration
- https://github.com/marmelab/ng-admin/blob/master/doc/API-mapping.md
这篇关于如何覆盖NG管理员路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文