We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ac064 commit b135abdCopy full SHA for b135abd
index.html
@@ -13,7 +13,7 @@
13
const Staffer = Model.extend({
14
static: {
15
jsonapiType: 'staffers',
16
- apiNamespace: '/v1/',
+ apiNamespace: '/v1',
17
baseUrl: 'http://localhost:3000/api'
18
},
19
src/model.ts
@@ -78,7 +78,7 @@ export default class Model {
78
}
79
80
static url(id?: string | number) : string {
81
- let endpoint = this.endpoint || this.jsonapiType;
+ let endpoint = this.endpoint || `/${this.jsonapiType}`;
82
let base = `${this.baseUrl}${this.apiNamespace}${endpoint}`;
83
84
if (id) {
0 commit comments