mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-16 21:58:40 +00:00
07441eec8e
* add asset id redirecting * dev env changes * suggested changes from PR * remove unnecessary proxy from nuxt config * fix formatting * change directory reference * fix API key storage * use /a/{id} as redirect * run generators * remove dependabot Co-authored-by: Bradley Nelson <bradley@nel.family> Co-authored-by: Bradley Nelson <BCNelson@users.noreply.github.com>
11 lines
381 B
TypeScript
11 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 }),
|
|
});
|
|
}
|
|
}
|