mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-28 11:35:40 +00:00
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
import { BaseAPI, route } from "../base";
|
|
import type { ItemSummary } from "../types/data-contracts";
|
|
import type { 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(`/assets/${id}`, { page, pageSize }),
|
|
});
|
|
}
|
|
}
|