feat: add /@username redirect to /user/username

This commit is contained in:
2026-04-25 03:12:12 -04:00
parent 6c65a52ee0
commit 70e637b281
@@ -0,0 +1,7 @@
import { error, redirect } from '@sveltejs/kit';
export async function GET({ params }) {
const username = params?.username;
if (!username) throw error(404, 'User not found');
throw redirect(302, `/user/${encodeURIComponent(username)}`);
}