mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 13:54:12 +02:00
format frontend code
This commit is contained in:
@@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public';
|
||||
import type {LayoutLoad} from './$types';
|
||||
import {redirect} from '@sveltejs/kit';
|
||||
import {base} from '$app/paths';
|
||||
import {browser} from "$app/environment";
|
||||
import {browser} from '$app/environment';
|
||||
import {goto} from '$app/navigation';
|
||||
|
||||
const apiUrl = env.PUBLIC_API_URL;
|
||||
@@ -23,5 +23,5 @@ export const load: LayoutLoad = async ({fetch}) => {
|
||||
throw redirect(303, base + '/login');
|
||||
}
|
||||
}
|
||||
return {user: await response.json()};
|
||||
return {user: await response.json()};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user