Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App = Ember.Application.create();
- App.Router.map(function() {
- this.resource('users');
- this.resource('departments');
- });
- App.ApplicationAdapter = DS.RESTAdapter.extend();
- App.Store = DS.Store.extend({
- adapter: 'App.ApplicationAdapter'
- });
- DS.RESTAdapter.reopen({
- url: 'http://localhost/service_r/index.php'
- });
- App.User = DS.Model.extend({
- username : DS.attr(),
- full_name : DS.attr(),
- email : DS.attr(),
- password : DS.attr()
- });
- App.Department = DS.Model.extend({
- departmentname : DS.attr()
- });
Advertisement
Add Comment
Please, Sign In to add comment