mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-18 21:16:31 +00:00
12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
|
import { BaseAPI, route } from "../base";
|
||
|
import { ItemSummary } from "../types/data-contracts";
|
||
|
import { PaginationResult } from "../types/non-generated";
|
||
|
|
||
|
export class AssetsApi extends BaseAPI {
|
||
|
async get(id: string, page = 1, pageSize = 50) {
|
||
|
return await this.http.get<PaginationResult<ItemSummary>>({
|
||
|
url: route(`/asset/${id}`, { page, pageSize }),
|
||
|
});
|
||
|
}
|
||
|
}
|