mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: deprecate /server-info and replace with /server-info/storage (#9645)
This commit is contained in:
parent
a341ab0050
commit
a3e7e8cc31
19 changed files with 265 additions and 99 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { browser } from '$app/environment';
|
||||
import { serverInfo } from '$lib/stores/server-info.store';
|
||||
import { user } from '$lib/stores/user.store';
|
||||
import { getMyUserInfo, getServerInfo } from '@immich/sdk';
|
||||
import { getMyUserInfo, getStorage } from '@immich/sdk';
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import { get } from 'svelte/store';
|
||||
import { AppRoute } from '../constants';
|
||||
|
|
@ -58,7 +58,7 @@ export const authenticate = async (options?: AuthOptions) => {
|
|||
|
||||
export const requestServerInfo = async () => {
|
||||
if (get(user)) {
|
||||
const data = await getServerInfo();
|
||||
const data = await getStorage();
|
||||
serverInfo.set(data);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue