Skip to content

Commit 07eb210

Browse files
authored
Update index.ts
Fixed indentation of 404 routing lines
1 parent e44b0f8 commit 07eb210

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/worker/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ export function R2Explorer(config?: R2ExplorerConfig) {
144144
openapi.post("/api/emails/send", SendEmail);
145145

146146
// No Share ID? Send to 404
147-
openapi.get("/share", (c) => Response.json({ msg: "404, not found!" }, { status: 404 }));
148-
openapi.get("/share/", (c) => Response.json({ msg: "404, not found!" }, { status: 404 }));
147+
openapi.get("/share", (c) =>
148+
Response.json({ msg: "404, not found!" }, { status: 404 }),
149+
);
150+
openapi.get("/share/", (c) =>
151+
Response.json({ msg: "404, not found!" }, { status: 404 }),
152+
);
149153

150154
// Public share access (no authentication required)
151155
openapi.get("/share/:shareId", GetShareLink);

0 commit comments

Comments
 (0)