You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
348 B
14 lines
348 B
import { callApi } from 'helpers'
|
|
import { Subscriptions } from './getSubscriptions'
|
|
import { API_ROOT } from '../config'
|
|
|
|
export const getSelectedSubscriptions = async (): Promise<Subscriptions> => {
|
|
const config = {
|
|
method: 'GET',
|
|
}
|
|
|
|
return callApi({
|
|
config,
|
|
url: `${API_ROOT}/v1/subscriptions${window.location.search}`,
|
|
})
|
|
}
|
|
|