Skip to content

Commit

Permalink
added specific adapter for Song model remote api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed May 21, 2024
1 parent b0db942 commit 30528fb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/adapters/song.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import JSONAPIAdapter from '@ember-data/adapter/json-api';

export default class SongAdapter extends JSONAPIAdapter {
host = 'https://music.nebyoolae.com';
// host =
// 'https://music.nebyoolae.com/jsonapi/views/songs/songs_neb_5?include=field_album_id,field_album_id.field_album_cover,field_artist_id';
namespace = 'jsonapi/views';

pathForType() {
return 'songs/songs_neb_5?include=field_album_id,field_album_id.field_album_cover,field_artist_id';
}

// buildURL() {
// return `${super.buildURL(...args)}`;
// }
}

0 comments on commit 30528fb

Please sign in to comment.