[FEAT] We now have a functional APP

This commit is contained in:
NADAL Jean-Baptiste
2026-02-18 12:52:15 +01:00
parent bc6e603af4
commit 1fb0072fc7
30 changed files with 174 additions and 77 deletions

View File

@@ -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;
},