BLOG-136 Dashboard route and frontend authentication #137
@ -38,8 +38,8 @@
|
||||
});
|
||||
|
||||
const links: DashboardLink[] = [
|
||||
{ label: 'Image', href: '/dashboard/image' },
|
||||
{ label: 'Post', href: '/dashboard/post' },
|
||||
{ label: 'Image', href: '/dashboard/image' },
|
||||
];
|
||||
</script>
|
||||
|
||||
|
@ -5,6 +5,6 @@ export const load: PageServerLoad = async ({ url }) => {
|
||||
const { pathname } = url;
|
||||
|
||||
if (pathname === '/dashboard') {
|
||||
redirect(302, '/dashboard/image');
|
||||
redirect(302, '/dashboard/post');
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user