Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -8,7 +8,10 @@ export function GET({ params, url }: { params: { name: string }; url: URL }) {
|
||||
return json({ error: 'limit must be between 1 and 10000' }, { status: 400 });
|
||||
}
|
||||
let query;
|
||||
try { query = readMatchQuery(url.searchParams); }
|
||||
catch { return json({ error: 'Invalid match history filters.' }, { status: 400 }); }
|
||||
try {
|
||||
query = readMatchQuery(url.searchParams);
|
||||
} catch {
|
||||
return json({ error: 'Invalid match history filters.' }, { status: 400 });
|
||||
}
|
||||
return json(serverMatchHistory(params.name, limit, query));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user