Bob
Bob

Reputation: 451

How do I restrict the route?

I have to restrict the user from re-routing page by changing the url in a browser. Is there any way to restrict it using ember?

Upvotes: 1

Views: 148

Answers (1)

Mike Grassotti
Mike Grassotti

Reputation: 19050

Yes. If you don't want the browser's URL to interact with your application at all, you can disable the location API

App.Router.reopen({
  location: 'none'
});

See http://emberjs.com/guides/routing/specifying-the-location-api/

Upvotes: 1

Related Questions