Test

Javascript code posted
created at 12 Apr 11:28

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Ember from 'ember';
import baseService from 'data-layer/mixins/base-service';

export default Ember.Service.extend(baseService, {
  apiPath: 'lookups/userprofile',
  cidbModel: 'user-profile',

  find:function() {
    return this.get('ajax').invoke('GET', this._buildUrl())
                .then(
                    response => this._handleSingleResponse(response),
                    response => this._handleError(response));
  }
});
458 Bytes in 4 ms with coderay