Skip to content

Commit c8202b9

Browse files
committed
Adapter for User Model
1 parent 803e5ae commit c8202b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/adapters/user.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import ApplicationAdapter from './application';
2+
3+
export default ApplicationAdapter.extend({
4+
stats(id) {
5+
return this.ajax(this.urlForStatsAction(id), 'GET');
6+
},
7+
8+
urlForStatsAction(id) {
9+
return `${this.buildURL('user', id)}/stats`;
10+
},
11+
});

0 commit comments

Comments
 (0)