fedilove-ui/routes/_api/lists.js

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}`
})
}