summary refs log tree commit diff
path: root/src/api/routes/voice/regions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/voice/regions.ts')
-rw-r--r--src/api/routes/voice/regions.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/api/routes/voice/regions.ts b/src/api/routes/voice/regions.ts
new file mode 100644
index 00000000..4de304ee
--- /dev/null
+++ b/src/api/routes/voice/regions.ts
@@ -0,0 +1,11 @@
+import { Router, Request, Response } from "express";
+import { getIpAdress, route } from "@fosscord/api";
+import { getVoiceRegions } from "@fosscord/api";
+
+const router: Router = Router();
+
+router.get("/", route({}), async (req: Request, res: Response) => {
+	res.json(await getVoiceRegions(getIpAdress(req), true)); //vip true?
+});
+
+export default router;