mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
chore: format code via prettier & csharpier
This commit is contained in:
@@ -1,7 +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)}`);
|
||||
const username = params?.username;
|
||||
if (!username) throw error(404, 'User not found');
|
||||
throw redirect(302, `/user/${encodeURIComponent(username)}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user