1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-23 04:38:12 +02:00

Remove serverEndpoint completely and fix upload path (#434)

This commit is contained in:
Alex
2022-08-07 08:12:31 -05:00
committed by GitHub
parent b45024a97e
commit 953d18e795
6 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,6 @@
import type { ImmichUser } from '$lib/models/immich-user';
import { createEventDispatcher, onMount } from 'svelte';
import { fade, fly, slide } from 'svelte/transition';
import { serverEndpoint } from '../../constants';
import TrayArrowUp from 'svelte-material-icons/TrayArrowUp.svelte';
import { clickOutside } from '../../utils/click-outside';
import { api } from '@api';
@ -131,7 +130,7 @@
>
{#if shouldShowProfileImage}
<img
src={`${serverEndpoint}/user/profile-image/${user.id}`}
src={`api/user/profile-image/${user.id}`}
alt="profile-img"
class="inline rounded-full h-20 w-20 object-cover shadow-md"
/>