, URL-, , , '/' (index)?
- URL-. , url gmail. , , URL-. gmail, URL-, . ember .
, , api, ?
URL-, , "/" , . "none"
. http://emberjs.com/guides/routing/specifying-the-location-api/
, , , , gmail, , , ?
, . , ( ) . , gmail, , .
URL- GMail: https://mail.google.com/mail/u/0/?shva=1#inbox
// Gmail Routes:
* /mail - the mail application
* /u/0 - connected account index 0 for the current user
* ?shva=1 - http://stackoverflow.com/questions/1692968/what-is-shva-in-gmails-url
* inbox - folder name
EmberMail: https://mail.ember.com/mail/u/0/inbox
this.resource('mail', { path: '/mail' }, function() {
this.resource('currentUser', { path: '/u' }, function() {
this.resource('account', { path: '/:account_id' }, function() {
this.route('folder', { path: '/:folder_id' });
});
});
});
, ?
, , - . , ember ember-: