pinafore/routes/_api/lists.js

8 lines
214 B
JavaScript
Raw Normal View History

2018-02-08 17:15:25 +00:00
import { get } from '../_utils/ajax'
export function getLists(instanceName, accessToken) {
let url = `https://${instanceName}/api/v1/lists`
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
}