1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-23 10:24:29 +01:00
Pinafore-Web-Client-Frontend/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}`
})
}