1

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 I use the getting started ng-admin application

Ildar
  • 3,808
  • 7
  • 45
  • 81

1 Answers1

1

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.

Aniket Sinha
  • 6,001
  • 6
  • 37
  • 50
  • I don't have a router file and I can't override standard ng-admin routers. ng-admin sends request to wrong URL for getting list of users and I don't know how to change this URL – Ildar Oct 25 '15 at 11:55
  • any solution on this? –  Sep 27 '16 at 13:08