mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
16 lines
487 B
TypeScript
16 lines
487 B
TypeScript
|
import { Injectable } from "@angular/core";
|
||
|
import { Http } from "@angular/http";
|
||
|
import { AuthedApi } from "../AuthedApi";
|
||
|
import { FE_Appservice } from "../../models/admin_responses";
|
||
|
|
||
|
@Injectable()
|
||
|
export class AdminAppserviceApiService extends AuthedApi {
|
||
|
constructor(http: Http) {
|
||
|
super(http);
|
||
|
}
|
||
|
|
||
|
public getAppservices(): Promise<FE_Appservice[]> {
|
||
|
return this.authedGet("/api/v1/dimension/admin/appservices/all").map(r => r.json()).toPromise();
|
||
|
}
|
||
|
}
|