A slash at the end of routes in ng-admin

后端 未结 1 761
天涯浪人
天涯浪人 2021-01-25 12:51

Is it possible to add a slash at the end of all routes in ng-admin. For example, http://localhost/api/v1/users/ instead of http://localhost/api/v1/users

相关标签:
1条回答
  • 2021-01-25 13:35

    If you want to add a trailing / at the URL, you need to provide an extra / in your router file where you specify url for each state. e.g: Instead of

    url: '/:entity/delete/:id', you need to write url: '/:entity/delete/:id/',

    Notice the trailing /. This configuration will handle the URLs in your app.

    0 讨论(0)
提交回复
热议问题