pinafore/routes/_api/lists.js
2018-02-18 19:41:10 -08:00

10 lines
253 B
JavaScript

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