Skip to content

Commit

Permalink
fix: home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsung committed Jan 3, 2024
1 parent 285d239 commit 403fdb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ export default {
async fetch(request: Request, env: any) {
const url = new URL(request.url);

if (url.pathname === '/') {
return new Response('[CDN]request method: ' + request.method);
}

if (url.pathname === '/favicon.ico') {
return new Response(null, { status: 204 });
}
Expand Down

0 comments on commit 403fdb6

Please sign in to comment.