pinafore/routes/_api/delete.js

8 lines
289 B
JavaScript
Raw Normal View History

2018-03-11 00:21:10 +00:00
import { auth, basename } from './utils'
import { deleteWithTimeout } from '../_utils/ajax'
export async function deleteStatus (instanceName, accessToken, statusId) {
let url = `${basename(instanceName)}/api/v1/statuses/${statusId}`
return deleteWithTimeout(url, auth(accessToken))
}