mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: facial recognition (#2180)
This commit is contained in:
parent
115a47d4c6
commit
93863b0629
107 changed files with 3943 additions and 133 deletions
|
|
@ -8,6 +8,7 @@ import {
|
|||
ConfigurationParameters,
|
||||
JobApi,
|
||||
OAuthApi,
|
||||
PersonApi,
|
||||
PartnerApi,
|
||||
SearchApi,
|
||||
ServerInfoApi,
|
||||
|
|
@ -31,6 +32,7 @@ export class ImmichApi {
|
|||
public searchApi: SearchApi;
|
||||
public serverInfoApi: ServerInfoApi;
|
||||
public shareApi: ShareApi;
|
||||
public personApi: PersonApi;
|
||||
public systemConfigApi: SystemConfigApi;
|
||||
public userApi: UserApi;
|
||||
|
||||
|
|
@ -49,6 +51,7 @@ export class ImmichApi {
|
|||
this.searchApi = new SearchApi(this.config);
|
||||
this.serverInfoApi = new ServerInfoApi(this.config);
|
||||
this.shareApi = new ShareApi(this.config);
|
||||
this.personApi = new PersonApi(this.config);
|
||||
this.systemConfigApi = new SystemConfigApi(this.config);
|
||||
this.userApi = new UserApi(this.config);
|
||||
}
|
||||
|
|
@ -98,6 +101,11 @@ export class ImmichApi {
|
|||
const path = `/user/profile-image/${userId}`;
|
||||
return this.createUrl(path);
|
||||
}
|
||||
|
||||
public getPeopleThumbnailUrl(personId: string) {
|
||||
const path = `/person/${personId}/thumbnail`;
|
||||
return this.createUrl(path);
|
||||
}
|
||||
}
|
||||
|
||||
export const api = new ImmichApi({ basePath: '/api' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue