[FEAT] We now have a functional APP
This commit is contained in:
@@ -86,8 +86,11 @@ export const apiService = {
|
||||
return response.data.score;
|
||||
},
|
||||
|
||||
async getInstruments(scoreId: string): Promise<Instrument[]> {
|
||||
const response = await api.get(`/scores/${scoreId}/instruments`);
|
||||
async getInstruments(scoreId: string, pieceId?: number): Promise<Instrument[]> {
|
||||
const url = pieceId
|
||||
? `/scores/${scoreId}/instruments?piece=${pieceId}`
|
||||
: `/scores/${scoreId}/instruments`;
|
||||
const response = await api.get(url);
|
||||
return response.data.instruments;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user