mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
16 lines
495 B
TypeScript
16 lines
495 B
TypeScript
import { Injectable } from "@angular/core";
|
|
import { Http } from "@angular/http";
|
|
import { FE_ScalarAccountResponse } from "../../models/scalar-server-responses";
|
|
import { AuthedApi } from "../authed-api";
|
|
|
|
@Injectable()
|
|
export class ScalarServerApiService extends AuthedApi {
|
|
constructor(http: Http) {
|
|
super(http)
|
|
}
|
|
|
|
public getAccount(): Promise<FE_ScalarAccountResponse> {
|
|
return this.authedGet("/api/v1/scalar/account").map(res => res.json()).toPromise();
|
|
}
|
|
}
|