8000
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 de8aa21 commit 5af1bafCopy full SHA for 5af1baf
src/Model.js
@@ -189,12 +189,8 @@ export default class Model extends StaticModel {
189
if (identifier === undefined) {
190
throw new Error('You must specify the param on find() method.')
191
}
192
-
193
- let url = `${this.baseURL()}/${this.resource()}/${identifier}${this._builder.query()}`
194
195
- if ('_fromResource' in this) {
196
- url = `${this._fromResource}/${identifier}${this._builder.query()}`
197
- }
+ let base = this._fromResource || `${this.baseURL()}/${this.resource()}`
+ let url = `${base}/${identifier}${this._builder.query()}`
198
199
return this.request({
200
url,
0 commit comments