forked from coracle/flotilla
Add some state management stuff
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import {redirect} from "@sveltejs/kit"
|
||||
|
||||
/** @type {import('./$types').LayoutServerLoad} */
|
||||
export function load({route}) {
|
||||
if (!route.id) {
|
||||
redirect(307, "/home")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user