pinafore/routes/_api/lists.js
2018-02-08 09:15:25 -08:00

8 lines
214 B
JavaScript

import { get } from '../_utils/ajax'
export function getLists(instanceName, accessToken) {
let url = `https://${instanceName}/api/v1/lists`
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
}