homebox/frontend/lib/api/classes/assets.ts
Hayden b77c9be36f
chore: bump deps (#810)
* bump prettier/eslint-plugin

* bump nuxt pwa

* use typed imports

* set vue version to fix layout errors

* disable import
2024-03-01 09:08:14 -09:00

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 }),
});
}
}