fix(#242): add route for get selected subscriptions
parent
f15ea1c466
commit
8c28c0d1b3
@ -0,0 +1,15 @@ |
|||||||
|
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}`, |
||||||
|
}) |
||||||
|
} |
||||||
Loading…
Reference in new issue