2023-03-01 14:20:58 +00:00
|
|
|
export interface TrackInfo {
|
|
|
|
id: string;
|
|
|
|
track_number?: number;
|
2023-03-02 04:54:23 +00:00
|
|
|
duration?: number;
|
2023-03-01 14:20:58 +00:00
|
|
|
name?: string;
|
|
|
|
album?: string;
|
|
|
|
artist?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getTracks = (): Promise<TrackInfo[]> =>
|
|
|
|
fetch("/api/v1/tracks").then((r) => r.json());
|