1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-02 14:56:48 +01:00

8 lines
248 B
JavaScript
Raw Normal View History

2018-02-23 18:23:36 -08:00
import { getWithTimeout } from '../_utils/ajax'
2018-02-24 14:49:28 -08:00
import { auth, basename } from './utils'
2018-02-08 09:15:25 -08:00
2018-02-08 22:29:29 -08:00
export function getLists (instanceName, accessToken) {
let url = `${basename(instanceName)}/api/v1/lists`
2018-02-24 14:49:28 -08:00
return getWithTimeout(url, auth(accessToken))
2018-02-08 22:29:29 -08:00
}