This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1import { recentTakes, takesPerUser } from "./routes/recentTakes"; 2import video from "./routes/video"; 3 4export { default as video } from "./routes/video"; 5 6export async function apiRouter(url: URL) { 7 const path = url.pathname.split("/")[2]; 8 9 switch (path) { 10 case "video": 11 return video(url); 12 case "recentTakes": 13 return recentTakes(); 14 case "takesPerUser": 15 return takesPerUser(url.pathname.split("/")[3] as string); 16 default: 17 return new Response("404 Not Found", { status: 404 }); 18 } 19}