Skip to content

Commit

Permalink
Update mod.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiaCode authored Sep 8, 2022
1 parent 75a468d commit c045ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const listen = async (options: Deno.ListenOptions): Promise<void> => {
const router = routers.get(new URL(requestEvent.request.url).pathname);

if (router) {
requestEvent.respondWith(router(requestEvent.request));
await requestEvent.respondWith(router(requestEvent.request));
} else {
requestEvent.respondWith(new Response('Not Found', { status: 404 }));
await requestEvent.respondWith(new Response('Not Found', { status: 404 }));
}
}
}
Expand Down

0 comments on commit c045ae0

Please sign in to comment.