Skip to content

Commit

Permalink
goofy aah
Browse files Browse the repository at this point in the history
  • Loading branch information
KodingDev committed Sep 24, 2022
1 parent 2c0784a commit 7fb6f63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/tiktok.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ export const addTikTokRoutes = (app: Hono) => {
return render(c, details);
};

// https://www.tiktok.com/@username/video/1234567891234567891
app.get("/*/video/:videoId", handleUsernameVideo);
app.get("/*/video/:videoId/", handleUsernameVideo);

// https://vm.tiktok.com/ZTRav7308/
app.get("/:vmId", handleRedirect("vmId"));
app.get("/:vmId/", handleRedirect("vmId"));

// https://www.tiktok.com/t/ZTRav7308
app.get("/t/:videoId", handleRedirect("videoId"));
app.get("/t/:videoId/", handleRedirect("videoId"));

// https://www.tiktok.com/@username/video/1234567891234567891
app.get("/:username/video/:videoId", handleUsernameVideo);
app.get("/:username/video/:videoId/", handleUsernameVideo);
};

0 comments on commit 7fb6f63

Please sign in to comment.