diff --git a/src/requests/getSound.tsx b/src/requests/getSound.tsx new file mode 100644 index 00000000..de93943c --- /dev/null +++ b/src/requests/getSound.tsx @@ -0,0 +1,17 @@ +import { callApi } from 'helpers' +import { API_ROOT } from 'config' + +type ResponseSound = { + asset: string, +} + +export const getSound = async (id: number): Promise => { + const config = { + method: 'GET', + } + + return callApi({ + config, + url: `${API_ROOT}/v1/highlights/music/${id}`, + }) +}