feat: add bot action controls and real-time vital statistics to the web dashboard
This commit is contained in:
@@ -45,5 +45,12 @@ export async function router(request: Request): Promise<Response> {
|
||||
}
|
||||
}
|
||||
|
||||
if (method === "POST") {
|
||||
if (url.pathname === "/api/actions") {
|
||||
const { actionsRoute } = await import("./routes/actions");
|
||||
return actionsRoute(request);
|
||||
}
|
||||
}
|
||||
|
||||
return new Response("Not Found", { status: 404 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user