mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 18:28:03 +01:00
8 lines
248 B
JavaScript
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))
|
|
}
|