feat: Reemplazar la página de selección de servidor con una interfaz de selección en línea y ajustar el diseño de la página de inicio de sesión

This commit is contained in:
Shni
2025-10-15 01:56:02 -05:00
parent b92f415f64
commit 4929f4f767
3 changed files with 80 additions and 16 deletions

View File

@@ -1138,14 +1138,10 @@ export const server = createServer(
return;
}
// Select guild page
// Keep /dashboard/select-guild for compatibility: redirect to /dashboard
if (url.pathname === "/dashboard/select-guild") {
await renderTemplate(req, res, "select_guild", {
appName: pkg.name ?? "Amayo Bot",
user,
guilds,
hideNavbar: true,
});
res.writeHead(302, { Location: "/dashboard" });
res.end();
return;
}