Skip to content

Commit

Permalink
♻️ Refactor: Export the server by default without defining any variable
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Oct 22, 2024
1 parent eb1ed98 commit 6d22917
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const server = {
export default {
fetch(request: Request) {
const path = decodeURIComponent(new URL(request.url).pathname);
const realpath = `https://siguici.deno.dev${path}`;
Expand All @@ -11,5 +11,3 @@ const server = {
});
},
};

export default server;

0 comments on commit 6d22917

Please sign in to comment.