fix(#2526): add methor for request sounds
parent
a961d09e62
commit
f09ad060ab
@ -0,0 +1,17 @@ |
||||
import { callApi } from 'helpers' |
||||
import { API_ROOT } from 'config' |
||||
|
||||
type ResponseSound = { |
||||
asset: string, |
||||
} |
||||
|
||||
export const getSound = async (id: number): Promise<ResponseSound> => { |
||||
const config = { |
||||
method: 'GET', |
||||
} |
||||
|
||||
return callApi({ |
||||
config, |
||||
url: `${API_ROOT}/v1/highlights/music/${id}`, |
||||
}) |
||||
} |
||||
Loading…
Reference in new issue