pinafore/routes/_api/lists.js
2018-02-24 14:49:28 -08:00

8 lines
248 B
JavaScript

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