mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-24 03:20:29 +00:00
implement selecting dynamic currency options
This commit is contained in:
parent
fa676d6351
commit
b4151f03c8
3 changed files with 34 additions and 5 deletions
|
@ -1,5 +1,11 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { Group, GroupInvitation, GroupInvitationCreate, GroupUpdate } from "../types/data-contracts";
|
||||
import {
|
||||
CurrenciesCurrency,
|
||||
Group,
|
||||
GroupInvitation,
|
||||
GroupInvitationCreate,
|
||||
GroupUpdate,
|
||||
} from "../types/data-contracts";
|
||||
|
||||
export class GroupApi extends BaseAPI {
|
||||
createInvitation(data: GroupInvitationCreate) {
|
||||
|
@ -21,4 +27,10 @@ export class GroupApi extends BaseAPI {
|
|||
url: route("/groups"),
|
||||
});
|
||||
}
|
||||
|
||||
currencies() {
|
||||
return this.http.get<CurrenciesCurrency[]>({
|
||||
url: route("/currencies"),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue