diff --git a/app/(setup)/page.tsx b/app/(setup)/page.tsx index 92ca3a9..1879f2f 100644 --- a/app/(setup)/page.tsx +++ b/app/(setup)/page.tsx @@ -20,4 +20,4 @@ const serverExplorerPage = async () => { ); }; -export default serverExplorerPage; \ No newline at end of file +export default serverExplorerPage; diff --git a/app/api/servers/getAllServers/route.ts b/app/api/servers/getAllServers/route.ts deleted file mode 100644 index 9da413d..0000000 --- a/app/api/servers/getAllServers/route.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { supabase } from "@/components/client"; -import { Request, Response } from "express"; - -export async function GET(req: Request, res: Response) { - try { - const { data: servers, error } = await supabase.from("Server").select(); - if (error) { - console.error(error); - res.status(500).json({ error: "Internal Server Error" }); - } else { - res.status(200).json(servers); - } - } catch (error: any) { - console.error("Error fetching servers:", error.message); - res.status(500).json({ error: "Internal Server Error" }); - } -}