Created
October 4, 2014 17:44
-
-
Save zeppelin/435da698aac0faec23f0 to your computer and use it in GitHub Desktop.
Including locale in the URL in Ember.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import config from './config/environment'; | |
var Router = Ember.Router.extend({ | |
location: config.locationType | |
}); | |
Router.map(function() { | |
this.resource('select-country'); | |
this.resource('root', { path: config.locale }, function() { | |
this.resource('register'); | |
this.resource('login'); | |
// ... | |
}); | |
}); | |
export default Router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment