Skip to content

Commit

Permalink
update routing.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed Aug 6, 2024
1 parent 29a6b6f commit 66a3b0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export default async function callAPI(request: Request): Promise<Result> {
const params = url.searchParams;
const id = params.get('id');
const zone = params.get('zone');
if (!id) {
return { success: false, message: 'Bad request' };
}
try {
if (!id) {
return { success: false, message: 'Bad request' };
let result: Result;
switch (true) {
case path.includes('/ff'):
Expand Down

0 comments on commit 66a3b0b

Please sign in to comment.