fix(#2526): add methor for request sounds

keep-around/f09ad060abadb54ab731d2923f633e5162e907d2
Andrei Dekterev 4 years ago
parent a961d09e62
commit f09ad060ab
  1. 17
      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<ResponseSound> => {
const config = {
method: 'GET',
}
return callApi({
config,
url: `${API_ROOT}/v1/highlights/music/${id}`,
})
}
Loading…
Cancel
Save