🚸 Added redirectTo to not redirect to /overview every time

This commit is contained in:
Mawoka
2022-04-15 10:46:56 +02:00
parent e581437f36
commit 95ca55dcdd
10 changed files with 223 additions and 179 deletions
+10
View File
@@ -1,3 +1,13 @@
<script context='module' lang='ts'>
import { signedIn } from '$lib/stores';
export async function load({ url, session }) {
if (session.authenticated) {
signedIn.set(true);
}
return {};
}
</script>
<script lang="ts">
const getData = async () => {
const response = await fetch('/api/v1/search/', {