mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
16 lines
499 B
TypeScript
16 lines
499 B
TypeScript
|
import { Injectable } from "@angular/core";
|
||
|
import { AuthedApi } from "../authed-api";
|
||
|
import { HttpClient } from "@angular/common/http";
|
||
|
import { FE_TermsEditable } from "../../models/terms";
|
||
|
|
||
|
@Injectable()
|
||
|
export class AdminTermsApiService extends AuthedApi {
|
||
|
constructor(http: HttpClient) {
|
||
|
super(http, true);
|
||
|
}
|
||
|
|
||
|
public getAllPolicies(): Promise<FE_TermsEditable[]> {
|
||
|
return this.authedGet<FE_TermsEditable[]>("/api/v1/dimension/admin/terms/all").toPromise();
|
||
|
}
|
||
|
}
|