feat: adds list editor

feat: adds list editor
This commit is contained in:
2022-12-23 15:15:11 +01:00
parent 08dcfd179b
commit 74e7d8c9e7
36 changed files with 389 additions and 182 deletions

View File

@@ -33,7 +33,7 @@ export class MastodonApiService {
return this.httpClient.post<T>(url, parameters);
}
postAuthenticated(url: string, body: { account_ids: string[] }, accessToken: string) {
postAuthenticated(url: string, body: {}, accessToken: string) {
const reqHeader = new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + accessToken
@@ -41,6 +41,14 @@ export class MastodonApiService {
return this.httpClient.post(url, body, {headers: reqHeader});
}
putAuthenticated(url: string, body: {}, accessToken: string) {
const reqHeader = new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + accessToken
});
return this.httpClient.put(url, body, {headers: reqHeader});
}
deleteAuthenticated(url: string, body: { account_ids: string[] }, accessToken: string) {
const reqHeader = new HttpHeaders({
'Content-Type': 'application/json',