1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-24 10:51:50 +01:00
Pinafore-Web-Client-Frontend/routes/_api/lists.js
2018-02-23 18:23:36 -08:00

10 lines
275 B
JavaScript

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