Skip to content

Commit c84afa7

Browse files
committed
orbitron is dumb
1 parent 3b849f3 commit c84afa7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/routes/tle.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ const tleRoute = new Elysia({ prefix: "/tle" })
99
.get("/", () => {
1010
return new Response(`Allowed groups: ${config.allowedGroups.join(", ")}`, { status: 200, headers: { "Content-Type": "text/plain" } });
1111
})
12+
1213
.get("/:group", async (ctx) => {
13-
const group = ctx.params.group;
14+
const group = ctx.params.group.split(".")[0] || "";
1415
const lastFetchedHeader = new Date(ctx.request.headers.get("If-Modified-Since") || 0).getTime();
1516
return await groupHandler.handleGroupRequest(group, lastFetchedHeader, "tle");
1617
})
18+
1719
.get("/:group/status", async (ctx) => {
1820
const group = ctx.params.group;
1921
return await groupHandler.handleGroupStatus(group, "tle");

0 commit comments

Comments
 (0)