mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Remove VITE_SERVER_ENDPOINT dependency (#428)
* Move backend api to its own instance * Remove external fetch hook * Added endpoint for album * Added endpoint for admin page * Make request directly to immich-server * Refactor unsued code
This commit is contained in:
parent
cf2b9eddfa
commit
b68358766b
23 changed files with 152 additions and 66 deletions
|
|
@ -168,7 +168,7 @@ async function fileUploader(asset: File, uploadType: UploadType) {
|
|||
uploadAssetsStore.updateProgress(deviceAssetId, percentComplete);
|
||||
};
|
||||
|
||||
request.open('POST', `${serverEndpoint}/asset/upload`);
|
||||
request.open('POST', `api/asset/upload`);
|
||||
|
||||
request.send(formData);
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue