pinafore/routes/_api/lists.js
2018-02-08 22:29:29 -08:00

9 lines
216 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}`
})
}