BLOG-136 Dashboard route and frontend authentication #137

Merged
squid merged 10 commits from BLOG-136_create_dashboard_route into main 2025-10-13 20:33:36 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 9d7a8bd300 - Show all commits

View File

@ -38,8 +38,8 @@
});
const links: DashboardLink[] = [
{ label: 'Image', href: '/dashboard/image' },
{ label: 'Post', href: '/dashboard/post' },
{ label: 'Image', href: '/dashboard/image' },
];
</script>

View File

@ -5,6 +5,6 @@ export const load: PageServerLoad = async ({ url }) => {
const { pathname } = url;
if (pathname === '/dashboard') {
redirect(302, '/dashboard/image');
redirect(302, '/dashboard/post');
}
};